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

Method isHasChildMenu

ElaWidgetTools/ElaMenu.cpp:95–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95bool ElaMenu::isHasChildMenu() const
96{
97 QList<QAction*> actionList = this->actions();
98 for (auto action: actionList)
99 {
100 if (action->isSeparator())
101 {
102 continue;
103 }
104 if (action->menu())
105 {
106 return true;
107 }
108 }
109 return false;
110}
111
112bool ElaMenu::isHasIcon() const
113{

Callers 1

sizeFromContentsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected