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

Method addMenu

ElaWidgetTools/ElaMenuBar.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34ElaMenuBar::~ElaMenuBar() = default;
35
36QAction* ElaMenuBar::addMenu(QMenu* menu)
37{
38 ElaMenu* elaMenu = dynamic_cast<ElaMenu*>(menu);
39 if (elaMenu)
40 {
41 elaMenu->setMenuItemHeight(27);
42 }
43 return QMenuBar::addMenu(menu);
44}
45
46ElaMenu* ElaMenuBar::addMenu(const QString& title)
47{

Callers

nothing calls this directly

Calls 2

setMenuItemHeightMethod · 0.80
getElaIconMethod · 0.45

Tested by

no test coverage detected