8 #ifndef ecvModalShortcut_h
9 #define ecvModalShortcut_h
15 #include <QKeySequence>
58 void setContextWidget(QWidget* contextWidget,
59 Qt::ShortcutContext contextArea = Qt::WindowShortcut);
64 bool isEnabled()
const;
72 void setEnabled(
bool shouldEnable,
bool changeFocus =
true);
77 QKeySequence keySequence()
const;
118 QAction* action =
nullptr,
119 QWidget* parent =
nullptr);
Manage key sequences used for shortcuts.
Manage an action and/or widget's responsivity to a shortcut.
QPointer< QAction > m_action
QPointer< QShortcut > m_shortcut