Changeset 22992 in vbox
- Timestamp:
- Sep 14, 2009 10:43:15 AM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxVMSettingsNetwork.h
r22964 r22992 55 55 protected: 56 56 57 void showEvent (QShowEvent *aEvent); 58 57 59 void retranslateUi(); 58 60 … … 75 77 QString mIntName; 76 78 QString mHoiName; 79 80 bool mPolished; 77 81 }; 78 82 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp
r22965 r22992 39 39 , mParent (aParent) 40 40 , mValidator (0) 41 , mPolished (false) 41 42 { 42 43 /* Apply UI decorations */ … … 65 66 mTbMAC->setStyleSheet ("QToolButton {border: 0px none black;}"); 66 67 #endif /* Q_WS_MAC */ 67 68 /* Hide advanced items initially */69 toggleAdvanced();70 68 71 69 /* Applying language settings */ … … 258 256 Assert (result.isNull() || !result.isEmpty()); 259 257 return result; 258 } 259 260 void VBoxVMSettingsNetwork::showEvent (QShowEvent *aEvent) 261 { 262 if (!mPolished) 263 { 264 mPolished = true; 265 266 /* Give the minimum size hint to the first layout column */ 267 mNetworkChildGridLayout->setColumnMinimumWidth (0, mLbAttachmentType->width()); 268 269 /* Hide advanced items initially */ 270 toggleAdvanced(); 271 } 272 QWidget::showEvent (aEvent); 260 273 } 261 274
Note:
See TracChangeset
for help on using the changeset viewer.