MCPcopy Create free account
hub / github.com/Liniyous/ElaWidgetTools / setMenu

Method setMenu

ElaWidgetTools/ElaToolButton.cpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void ElaToolButton::setMenu(ElaMenu* menu)
70{
71 if (!menu || menu == this->menu())
72 {
73 return;
74 }
75 menu->setMenuItemHeight(27);
76 QToolButton::setMenu(menu);
77 menu->installEventFilter(this);
78}
79
80void ElaToolButton::setElaIcon(ElaIconType::IconName icon)
81{

Callers 4

initEdgeLayoutMethod · 0.80
T_PopupMethod · 0.80
createCustomWidgetMethod · 0.80
ElaMenuBarMethod · 0.80

Calls 1

setMenuItemHeightMethod · 0.80

Tested by

no test coverage detected