- Timestamp:
- Nov 7, 2012 8:49:32 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp
r43822 r43823 641 641 } 642 642 643 void UIGChooserItemGroup::updateToggleButtonToolTip() 644 { 645 /* Is toggle-button created? */ 646 if (!m_pToggleButton) 647 return; 648 649 /* Update toggle-button tool-tip: */ 650 m_pToggleButton->setToolTip(isOpened() ? tr("Collapse group") : tr("Expand group")); 651 } 652 643 653 void UIGChooserItemGroup::retranslateUi() 644 654 { … … 1146 1156 /* Else call to base-class: */ 1147 1157 return UIGChooserItem::sizeHint(which, constraint); 1148 }1149 1150 void UIGChooserItemGroup::updateToggleButtonToolTip()1151 {1152 /* Is toggle-button created? */1153 if (!m_pToggleButton)1154 return;1155 1156 /* Update toggle-button tool-tip: */1157 m_pToggleButton->setToolTip(isOpened() ? tr("Collapse group") : tr("Expand group"));1158 1158 } 1159 1159 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.h
r43822 r43823 136 136 void updateHeaderSize(); 137 137 void updateToolTip(); 138 void updateToggleButtonToolTip(); 138 139 139 140 /* Helper: Translate stuff: */ … … 167 168 QSizeF minimumSizeHint(bool fOpenedGroup) const; 168 169 QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const; 169 170 /* Helper: Collapse/expand stuff: */171 void updateToggleButtonToolTip();172 170 173 171 /* Helpers: Drag&drop stuff: */
Note:
See TracChangeset
for help on using the changeset viewer.