Changeset 13669 in vbox
- Timestamp:
- Oct 29, 2008 8:05:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxSelectorWnd.cpp
r13634 r13669 458 458 /* Subwidgets */ 459 459 460 /* Central widget @ vertical layout */460 /* Central widget @ horizontal layout */ 461 461 setCentralWidget (new QWidget (this)); 462 QVBoxLayout *centralLayout = new QVBoxLayout (centralWidget()); 463 464 /* Pane horizontal layout */ 465 QHBoxLayout *paneLayout = new QHBoxLayout(); 462 QHBoxLayout *centralLayout = new QHBoxLayout (centralWidget()); 463 464 /* Left vertical box */ 465 QVBoxLayout *leftVLayout = new QVBoxLayout(); 466 /* Right vertical box */ 467 QVBoxLayout *rightVLayout = new QVBoxLayout(); 468 centralLayout->addLayout (leftVLayout, 1); 469 centralLayout->addLayout (rightVLayout, 2); 466 470 467 471 /* VM list toolbar */ 468 472 VBoxToolBar *vmTools = new VBoxToolBar (this); 469 470 /* Left vertical box */471 QVBoxLayout *leftVLayout = new QVBoxLayout();472 paneLayout->addLayout (leftVLayout, 1);473 474 /* Right vertical box */475 QVBoxLayout *rightVLayout = new QVBoxLayout();476 paneLayout->addLayout (rightVLayout, 2);477 478 473 #if MAC_LEOPARD_STYLE 479 474 /* Enable unified toolbars on Mac OS X. Available on Qt >= 4.3 */ … … 482 477 /* No spacing/margin on the mac */ 483 478 VBoxGlobal::setLayoutMargin (centralLayout, 0); 484 VBoxGlobal::setLayoutMargin (paneLayout, 0); /* Dsen to NaN: Is it necessary? */485 479 leftVLayout->setSpacing (0); 486 480 rightVLayout->setSpacing (0); 487 // rightVLayout->insertSpacing (0, 10); /* Dsen to NaN: Is it necessary anymore? */481 rightVLayout->insertSpacing (0, 10); 488 482 #else /* MAC_LEOPARD_STYLE */ 489 centralLayout->addWidget (vmTools); 490 centralLayout->setSpacing (5); 491 paneLayout->setSpacing (9); 483 leftVLayout->addWidget (vmTools); 484 centralLayout->setSpacing (9); 492 485 VBoxGlobal::setLayoutMargin (centralLayout, 5); 493 486 leftVLayout->setSpacing (5); 494 487 rightVLayout->setSpacing (5); 495 488 #endif /* MAC_LEOPARD_STYLE */ 496 497 /* Inserting pane layout */498 centralLayout->addLayout (paneLayout);499 489 500 490 /* VM list view */ … … 544 534 vmTools->addAction (vmStartAction); 545 535 vmTools->addAction (vmDiscardAction); 546 vmTools->addSeparator();547 vmTools->addAction (vmPauseAction);548 vmTools->addSeparator();549 vmTools->addAction (vmRefreshAction);550 vmTools->addSeparator();551 vmTools->addAction (vmShowLogsAction);552 536 553 537 /* add actions to menubar */
Note:
See TracChangeset
for help on using the changeset viewer.