MCPcopy Create free account
hub / github.com/KLayout/klayout / find_extras_menu

Function find_extras_menu

src/laybasic/laybasic/layAbstractMenu.cc:1252–1266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250static const std::string s_extras_menu_name ("_extras_menu");
1251
1252static QMenu *find_extras_menu (QMenuBar *mbar)
1253{
1254 if (! mbar) {
1255 return 0;
1256 }
1257
1258 QList<QAction *> a = mbar->actions ();
1259 for (QList<QAction *>::const_iterator i = a.begin (); i != a.end (); ++i) {
1260 if (tl::to_string ((*i)->objectName ()) == s_extras_menu_name) {
1261 return (*i)->menu ();
1262 }
1263 }
1264
1265 return 0;
1266}
1267
1268bool
1269AbstractMenu::wants_extra_menu ()

Callers 1

buildMethod · 0.85

Calls 5

actionsMethod · 0.80
menuMethod · 0.80
to_stringFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected