VirtualBox

Changeset 74951 in vbox


Ignore:
Timestamp:
Oct 19, 2018 4:53:04 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: UIActionPool & UIActionPoolSelector: Don't forget to mention shortcuts in tool-tips of actions which are now a part of tool-bar.

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

Legend:

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

    r74914 r74951  
    11791179        setName(QApplication::translate("UIActionPool", "&Preferences...", "global preferences window"));
    11801180        setStatusTip(QApplication::translate("UIActionPool", "Display the global preferences window"));
     1181        setToolTip(text().remove('&').remove('.') +
     1182                   (shortcut().toString().isEmpty() ? "" : QString(" (%1)").arg(shortcut().toString())));
    11811183    }
    11821184};
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolSelector.cpp

    r74950 r74951  
    197197        setName(QApplication::translate("UIActionPool", "&Import Appliance..."));
    198198        setStatusTip(QApplication::translate("UIActionPool", "Import an appliance into VirtualBox"));
     199        setToolTip(text().remove('&').remove('.') +
     200                   (shortcut().toString().isEmpty() ? "" : QString(" (%1)").arg(shortcut().toString())));
    199201    }
    200202};
     
    232234        setName(QApplication::translate("UIActionPool", "&Export Appliance..."));
    233235        setStatusTip(QApplication::translate("UIActionPool", "Export one or more VirtualBox virtual machines as an appliance"));
     236        setToolTip(text().remove('&').remove('.') +
     237                   (shortcut().toString().isEmpty() ? "" : QString(" (%1)").arg(shortcut().toString())));
    234238    }
    235239};
     
    584588        setName(QApplication::translate("UIActionPool", "&Add..."));
    585589        setStatusTip(QApplication::translate("UIActionPool", "Add existing virtual machine"));
     590        setToolTip(text().remove('&').remove('.') +
     591                   (shortcut().toString().isEmpty() ? "" : QString(" (%1)").arg(shortcut().toString())));
    586592    }
    587593};
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