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

Method probe_std

src/laybasic/laybasic/gtf.cc:1417–1448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1415}
1416
1417tl::Variant
1418Recorder::probe_std (QWidget *w)
1419{
1420 if (dynamic_cast <QTreeView *> (w)) {
1421 return probe_widget (dynamic_cast <QTreeView *> (w));
1422 }
1423 if (dynamic_cast <QLineEdit *> (w)) {
1424 return probe_widget (dynamic_cast <QLineEdit *> (w));
1425 }
1426 if (dynamic_cast <QTextEdit *> (w)) {
1427 return probe_widget (dynamic_cast <QTextEdit *> (w));
1428 }
1429 if (dynamic_cast <QSpinBox *> (w)) {
1430 return probe_widget (dynamic_cast <QSpinBox *> (w));
1431 }
1432 if (dynamic_cast <QCheckBox *> (w)) {
1433 return probe_widget (dynamic_cast <QCheckBox *> (w));
1434 }
1435 if (dynamic_cast <QComboBox *> (w)) {
1436 return probe_widget (dynamic_cast <QComboBox *> (w));
1437 }
1438 if (dynamic_cast <QListView *> (w)) {
1439 return probe_widget (dynamic_cast <QListView *> (w));
1440 }
1441 if (dynamic_cast <QRadioButton *> (w)) {
1442 return probe_widget (dynamic_cast <QRadioButton *> (w));
1443 }
1444 if (dynamic_cast <QPushButton *> (w)) {
1445 return probe_widget (dynamic_cast <QPushButton *> (w));
1446 }
1447 return tl::Variant ();
1448}
1449
1450/*
1451 * HINT: it was not a good idea to suppress mouse clicks to the context menu - this is caught by the

Callers 1

issue_eventMethod · 0.80

Calls 2

probe_widgetFunction · 0.85
VariantClass · 0.50

Tested by

no test coverage detected