VirtualBox

Changeset 44559 in vbox


Ignore:
Timestamp:
Feb 6, 2013 11:27:20 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: 6065: Some shortcut-pool extension/fixes.

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

Legend:

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

    r44448 r44559  
    108108    foreach (UIAction *pAction, pActionPool->actions())
    109109    {
     110        /* Skip menu actions: */
     111        if (pAction->type() == UIActionType_Menu)
     112            continue;
     113
    110114        /* Compose full shortcut key: */
    111115        QString strShortcutKey = m_strShortcutKeyTemplate.arg(pActionPool->shortcutsExtraDataID(),
     
    199203    /* Default shortcut for the Runtime Popup Menu invokation: */
    200204    m_shortcuts.insert(strRuntimeShortcutKeyTemplate.arg("PopupMenu"),
    201                        UIShortcut(QApplication::translate("UIActonPool", "Invoke popup menu"), QString("Home")));
     205                       UIShortcut(QApplication::translate("UIActonPool", "Popup Menu"), QString("Home")));
    202206}
    203207
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIShortcutPool.h

    r44448 r44559  
    7979    UIShortcut& shortcut(UIActionPool *pActionPool, UIAction *pAction);
    8080    UIShortcut& shortcut(const QString &strPoolID, const QString &strActionID);
     81    const QMap<QString, UIShortcut>& shortcuts() const { return m_shortcuts; }
    8182
    8283    /* API: Action-pool 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