Changeset 20757 in vbox
- Timestamp:
- Jun 22, 2009 10:02:23 AM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxMiniToolBar.h
r20441 r20757 79 79 private: 80 80 81 void initialize(); 81 82 void recreateMask(); 82 83 void moveToBase(); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxMiniToolBar.cpp
r20441 r20757 133 133 void VBoxMiniToolBar::setDisplayText (const QString &aText) 134 134 { 135 mDisplayLabel->setText (aText); 135 if (mDisplayLabel->text() != aText) 136 { 137 /* Update toolbar label */ 138 mDisplayLabel->setText (aText); 139 140 /* Reinitialize */ 141 initialize(); 142 143 if (!isHidden()) 144 updateDisplay (!mAutoHide, false); 145 } 136 146 } 137 147 … … 287 297 lableMargin->setMinimumWidth (15); 288 298 289 /* Resize to sizehint */290 resize (sizeHint());291 292 299 /* Initialize */ 293 recreateMask(); 294 moveToBase(); 300 initialize(); 295 301 296 302 mPolished = true; … … 311 317 mAutoHide = !aOn; 312 318 updateDisplay (!mAutoHide, false); 319 } 320 321 void VBoxMiniToolBar::initialize() 322 { 323 /* Resize to sizehint */ 324 resize (sizeHint()); 325 326 /* Update geometry */ 327 recreateMask(); 328 moveToBase(); 313 329 } 314 330
Note:
See TracChangeset
for help on using the changeset viewer.