MCPcopy Create free account
hub / github.com/KDAB/GammaRay / init

Function init

tests/quickinspectorpickingtest.cpp:86–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 void init()
87 {
88 createProbe();
89
90 // we need one view for the plugin to activate, otherwise the model will not be available
91 view = new QQuickView;
92 view->setResizeMode(QQuickView::SizeViewToRootObject);
93 QTest::qWait(1); // event loop re-entry
94
95 itemModel = ObjectBroker::model(QStringLiteral("com.kdab.GammaRay.QuickItemModel"));
96 QVERIFY(itemModel);
97
98 inspector = ObjectBroker::object<QuickInspectorInterface *>();
99 QVERIFY(inspector);
100 inspector->selectWindow(0);
101 QTest::qWait(1);
102 }
103
104 void cleanup()
105 {

Callers 3

initTestCaseMethod · 0.70
initMethod · 0.70
initMethod · 0.70

Calls 1

selectWindowMethod · 0.45

Tested by

no test coverage detected