8 #ifndef ecvShortcutDecorator_h
9 #define ecvShortcutDecorator_h
72 bool isEnabled()
const;
82 virtual void setEnabled(
bool enable,
bool refocusWhenEnabling =
false);
89 virtual void onShortcutEnabled();
95 virtual void onShortcutDisabled();
101 QFrame* decoratedFrame()
const;
106 bool eventFilter(QObject* obj, QEvent*
event)
override;
114 void markFrame(
bool active,
const QColor& frameColor);
Manage an action and/or widget's responsivity to a shortcut.
Decorate a widget by highlighting its frame when keyboard shortcuts are active.
~ecvShortcutDecorator() override=default
bool m_silent
Prevent recursive signaling inside onShortcutEnabled/onShortcutDisabled.
QList< QPointer< ecvModalShortcut > > m_shortcuts