8 #ifndef ecvShortcutDecorator_h
9 #define ecvShortcutDecorator_h
82 virtual void setEnabled(
bool enable,
bool refocusWhenEnabling =
false);
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 eventFilter(QObject *obj, QEvent *event) override
virtual void setEnabled(bool enable, bool refocusWhenEnabling=false)
ecvShortcutDecorator(QFrame *parent)
bool m_silent
Prevent recursive signaling inside onShortcutEnabled/onShortcutDisabled.
QList< QPointer< ecvModalShortcut > > m_shortcuts
void markFrame(bool active, const QColor &frameColor)
QFrame * decoratedFrame() const
virtual void onShortcutEnabled()
void addShortcut(ecvModalShortcut *shortcut)
virtual void onShortcutDisabled()