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

Function method

tests/multisignalmappertest.cpp:38–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36Q_DECLARE_METATYPE(QVector<QVariant>)
37
38class MultiSignalMapperTest : public QObject
39{
40 Q_OBJECT
41public:
42 explicit MultiSignalMapperTest(QObject *parent = nullptr)
43 : QObject(parent)
44 {
45 qRegisterMetaType<QVector<QVariant>>();
46 }
47
48private:
49 static QMetaMethod method(QObject *obj, const char *name)
50 {
51 return obj->metaObject()->method(obj->metaObject()->indexOfSignal(name));
52 }
53
54private slots:
55 void testMapper()

Callers 1

testMapperFunction · 0.85

Calls 1

metaObjectMethod · 0.45

Tested by

no test coverage detected