VirtualBox

Changeset 51378 in vbox for trunk


Ignore:
Timestamp:
May 23, 2014 5:37:33 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: UIActionPool: Update menu-actions to not have (acquire) shortcuts preventing their registration in shortcut-pools.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp

    r51375 r51378  
    270270        setIcon(icon);
    271271    setMenu(new UIMenu);
     272}
     273
     274void UIActionMenu::updateText()
     275{
     276    setText(nameInMenu());
    272277}
    273278
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h

    r51375 r51378  
    109109    QString nameInMenu() const;
    110110
     111    /** Updates action text accordingly. */
     112    virtual void updateText();
     113
    111114private:
    112 
    113     /* Helper: Text stuff: */
    114     void updateText();
    115115
    116116    /* Variables: */
     
    230230    UIActionMenu(UIActionPool *pParent,
    231231                 const QIcon &icon);
     232
     233    /** Updates action text accordingly. */
     234    virtual void updateText();
    232235};
    233236
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