17 #include <QToolButton>
18 #include "../../util/btconnect.h"
41 , m_menu(std::make_unique<
QMenu>())
52 auto *
const button =
new BtToolButton(parent);
55 button->setDefaultAction(
this);
56 button->setPopupMode(QToolButton::MenuButtonPopup);
57 button->setMenu(
m_menu.get());
59 this , [
this] { Q_EMIT triggered(); });
65 if (
event->type() == QEvent::Shortcut) {
69 return QWidgetAction::event(
event);