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

Method modelTest

tests/methodmodeltest.cpp:58–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57private slots:
58 void modelTest()
59 {
60 createProbe();
61
62 ObjectMethodModel srcModel;
63 ClientMethodModel model;
64 model.setSourceModel(&srcModel);
65
66 QAbstractItemModelTester modelTest(&model);
67
68 srcModel.setMetaObject(&QObject::staticMetaObject);
69 srcModel.setMetaObject(&staticMetaObject);
70 srcModel.setMetaObject(nullptr);
71 }
72
73 static void testModel()
74 {

Callers

nothing calls this directly

Calls 2

setSourceModelMethod · 0.45
setMetaObjectMethod · 0.45

Tested by

no test coverage detected