Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/types/qqmlconnections_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | class QQmlBoundSignal; | - |
6 | class QQmlContext; | - |
7 | class QQmlConnectionsPrivate; | - |
8 | class __attribute__((visibility("default"))) QQmlConnections : public QObject, public QQmlParserStatus | - |
9 | { | - |
10 | public: | - |
11 | #pragma GCC diagnostic push | - |
12 | - | |
13 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
14 | static const QMetaObject staticMetaObject; virtual const QMetaObject *metaObject() const; virtual void *qt_metacast(const char *); virtual int qt_metacall(QMetaObject::Call, int, void **); static inline QString tr(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } __attribute__ ((__deprecated__)) static inline QString trUtf8(const char *s, const char *c = nullptr, int n = -1) { return staticMetaObject.tr(s, c, n); } private: | - |
15 | #pragma GCC diagnostic ignored "-Wattributes" | - |
16 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
17 | #pragma GCC diagnostic pop | - |
18 | struct QPrivateSignal {}; | - |
19 | inline QQmlConnectionsPrivate* d_func() { return executed 674 times by 10 tests: reinterpret_cast<QQmlConnectionsPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQmlConnectionsPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 674 times by 10 tests: } inline const QQmlConnectionsPrivate* d_func() const { returnreturn reinterpret_cast<QQmlConnectionsPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 268 times by 9 tests: reinterpret_cast<const QQmlConnectionsPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQmlConnectionsPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 268 times by 9 tests: } friend class QQmlConnectionsPrivate;return reinterpret_cast<const QQmlConnectionsPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 268-674 |
20 | - | |
21 | - | |
22 | - | |
23 | - | |
24 | - | |
25 | - | |
26 | public: | - |
27 | QQmlConnections(QObject *parent=nullptr); | - |
28 | ~QQmlConnections(); | - |
29 | - | |
30 | QObject *target() const; | - |
31 | void setTarget(QObject *); | - |
32 | - | |
33 | bool isEnabled() const; | - |
34 | void setEnabled(bool enabled); | - |
35 | - | |
36 | bool ignoreUnknownSignals() const; | - |
37 | void setIgnoreUnknownSignals(bool ignore); | - |
38 | - | |
39 | public : | - |
40 | void targetChanged(); | - |
41 | void enabledChanged(); | - |
42 | - | |
43 | private: | - |
44 | void connectSignals(); | - |
45 | void classBegin() override; | - |
46 | void componentComplete() override; | - |
47 | }; | - |
48 | - | |
49 | class QQmlConnectionsParser : public QQmlCustomParser | - |
50 | { | - |
51 | public: | - |
52 | void verifyBindings(const QV4::CompiledData::Unit *qmlUnit, const QList<const QV4::CompiledData::Binding *> &props) override; | - |
53 | void applyBindings(QObject *object, QV4::CompiledData::CompilationUnit *compilationUnit, const QList<const QV4::CompiledData::Binding *> &bindings) override; | - |
54 | }; | - |
55 | - | |
56 | - | |
57 | - | |
58 | - | |
59 | template <> struct QMetaTypeId< QQmlConnections * > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlConnections * >("QQmlConnections *", reinterpret_cast< QQmlConnections * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQmlConnections> > { enum { Defined = 1 }; static int qt_metatype_id() { static QBasicAtomicInt metatype_id = { 0 }; if (const int id = metatype_id.loadAcquire()) return id; const int newId = qRegisterMetaType< QQmlListProperty<QQmlConnections> >("QQmlListProperty<QQmlConnections>", reinterpret_cast< QQmlListProperty<QQmlConnections> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
Switch to Source code | Preprocessed file |