51 const QKeySequence &key, Qt::ShortcutContext context = Qt::WindowShortcut);
55 const QKeySequence &key, Qt::ShortcutContext dockedContext,
56 Qt::ShortcutContext undockedContext);
60 void connectTrigger(
const QObject *receiver,
const char *method, Qt::ConnectionType type = Qt::AutoConnection);
62 void setEnabled(
bool actionEnabled,
bool shortcutEnabled);
64 void setEnabled(
bool enabled);
66 void setVisible(
bool actionVisible,
bool shortcutEnabled);
68 void setVisible(
bool visible);
70 QAction* action()
const {
return m_action.data(); }
73 QPointer<QAction> m_action;
74 QPointer<QShortcut> m_shortcut;
75 Qt::ShortcutContext m_dockedShortcut;
76 Qt::ShortcutContext m_undockedShortcut;
79 void parentDockStateChanged(
bool docked);
ShortcutAction(const QString &text, AbstractDockWidget *parent)
< simple action with text only (no shortcut)
Definition shortcutAction.cpp:31