VirtualBox

Changeset 43823 in vbox for trunk/src


Ignore:
Timestamp:
Nov 7, 2012 8:49:32 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: VM group UI: Some group-item cleanup (update related, part 3).

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  
    641641}
    642642
     643void 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
    643653void UIGChooserItemGroup::retranslateUi()
    644654{
     
    11461156    /* Else call to base-class: */
    11471157    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"));
    11581158}
    11591159
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.h

    r43822 r43823  
    136136    void updateHeaderSize();
    137137    void updateToolTip();
     138    void updateToggleButtonToolTip();
    138139
    139140    /* Helper: Translate stuff: */
     
    167168    QSizeF minimumSizeHint(bool fOpenedGroup) const;
    168169    QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const;
    169 
    170     /* Helper: Collapse/expand stuff: */
    171     void updateToggleButtonToolTip();
    172170
    173171    /* Helpers: Drag&drop stuff: */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette