Class sh::ui::qt::QtToolbarButtonHandler

class sh::ui::qt::QtToolbarButtonHandler

A handler which reflects the sh::actions objects to a graphical toolbar button (and keeps that up-to-date).

Public Functions

QtToolbarButtonHandler(std::shared_ptr<sh::actions::SubmenuActionItem> action, bool preventDefaultAction, QtToolbarButton *button, QAction *qaction)
~QtToolbarButtonHandler()

Private Functions

void _updateSubmenu()

Private Members

std::shared_ptr<sh::actions::SubmenuActionItem> action
QtActionMenu menu
bool preventDefaultAction
QtToolbarButton *button

Private Static Functions

void _applyPropertiesToButton(sh::actions::SubmenuActionItem *action, QtToolbarButton *button, QAction *qaction)