Changeset 11609 in vbox
- Timestamp:
- Aug 25, 2008 12:14:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsNetwork.cpp
r11530 r11609 371 371 mLeTerminate_x11->setVisible (aVisible); 372 372 mTbTerminate_x11->setVisible (aVisible); 373 /* Make sure the layout is recalculated (Important on the mac). */ 374 layout()->activate(); 373 375 } 374 376 … … 416 418 : QIWithRetranslateUI<QWidget> (aParent) 417 419 { 418 Q GridLayout *mainLayout = new QGridLayout (this);420 QVBoxLayout *mainLayout = new QVBoxLayout (this); 419 421 VBoxGlobal::setLayoutMargin (mainLayout, 0); 420 422 mLbTitle = new QILabelSeparator(); 421 mainLayout->addWidget (mLbTitle , 0, 0, 1, 2);423 mainLayout->addWidget (mLbTitle); 422 424 // mainLayout->addItem (new QSpacerItem (8, 16, QSizePolicy::Fixed, QSizePolicy::Minimum), 1, 0); 423 425 /* Creating List Widget */ 424 426 QHBoxLayout *layout = new QHBoxLayout (); 425 mainLayout->addLayout (layout , 1, 0);427 mainLayout->addLayout (layout); 426 428 mList = new QTreeWidget (this); 427 429 setFocusProxy (mList); … … 447 449 # endif /* Q_WS_WIN */ 448 450 451 # if defined (Q_WS_WIN) 449 452 /* Prepare toolbar */ 450 453 VBoxToolBar *toolBar = new VBoxToolBar (this); … … 452 455 toolBar->setIconSize (QSize (16, 16)); 453 456 toolBar->setOrientation (Qt::Vertical); 454 # if defined (Q_WS_WIN)455 457 toolBar->addAction (mAddAction); 456 458 toolBar->addAction (mDelAction); 459 layout->addWidget (toolBar); 457 460 # endif /* Q_WS_WIN */ 458 layout->addWidget (toolBar);459 461 460 462 /* Setup connections */ … … 495 497 if (aName.isEmpty()) 496 498 { 499 #ifdef Q_WS_MAC 500 /* Always select the first item to have an initial value. */ 501 QTreeWidgetItem *item = mList->topLevelItem (0); 502 if (item) 503 { 504 item->setSelected (true); 505 mList->setCurrentItem (item); 506 onCurrentItemChanged (mList->currentItem()); 507 } 508 #else 497 509 /* Make sure no one of items selected in the list currently */ 498 mList->setCurrentItem ( 0);510 mList->setCurrentItem (NULL); 499 511 mList->clearSelection(); 512 #endif 500 513 } 501 514 else
Note:
See TracChangeset
for help on using the changeset viewer.