4 #ifndef pqModalShortcut_h 5 #define pqModalShortcut_h 8 #include <QKeySequence> 32 void setContextWidget(
33 QWidget* contextWidget, Qt::ShortcutContext contextArea = Qt::WindowShortcut);
35 bool isEnabled()
const;
36 void setEnabled(
bool shouldEnable,
bool changeFocus =
true);
38 QKeySequence keySequence()
const;
66 pqModalShortcut(
const QKeySequence& key, QAction* action =
nullptr, QWidget* parent =
nullptr);
Manage an action and/or widget's responsivity to a shortcut.
QPointer< QAction > m_action
QPointer< QShortcut > m_shortcut
Manage key sequences used for shortcuts.