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

Function dump_widget_tree

src/laybasic/laybasic/gtf.cc:136–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void
137dump_widget_tree ()
138{
139 QWidgetList tl_widgets = QApplication::topLevelWidgets ();
140
141 tl::info << tl::to_string (QObject::tr ("Widget tree:"));
142 for (QWidgetList::const_iterator tl = tl_widgets.begin (); tl != tl_widgets.end (); ++tl) {
143 if (is_widget (*tl)) {
144 dump_children (*tl);
145 }
146 }
147 tl::info << "";
148}
149
150static bool extract_widget_path (tl::Extractor &x, std::string &name, std::string &cls, int &nwidget)
151{

Callers 1

widget_from_pathFunction · 0.85

Calls 6

is_widgetFunction · 0.85
dump_childrenFunction · 0.70
to_stringFunction · 0.50
trFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected