Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlcontext.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | class QString; | - |
6 | class QQmlEngine; | - |
7 | class QQmlRefCount; | - |
8 | class QQmlContextPrivate; | - |
9 | class QQmlCompositeTypeData; | - |
10 | class QQmlContextData; | - |
11 | - | |
12 | class __attribute__((visibility("default"))) QQmlContext : public QObject | - |
13 | { | - |
14 | public: | - |
15 | #pragma GCC diagnostic push | - |
16 | - | |
17 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
18 | 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: | - |
19 | #pragma GCC diagnostic ignored "-Wattributes" | - |
20 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
21 | #pragma GCC diagnostic pop | - |
22 | struct QPrivateSignal {}; | - |
23 | inline QQmlContextPrivate* d_func() { return executed 161892 times by 150 tests: reinterpret_cast<QQmlContextPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQmlContextPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 161892 times by 150 tests: } inline const QQmlContextPrivate* d_func() const { returnreturn reinterpret_cast<QQmlContextPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 363774 times by 64 tests: reinterpret_cast<const QQmlContextPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQmlContextPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
executed 363774 times by 64 tests: } friend class QQmlContextPrivate;return reinterpret_cast<const QQmlContextPrivate *>(qGetPtrHelper(d_ptr)); Executed by:
| 161892-363774 |
24 | - | |
25 | public: | - |
26 | struct PropertyPair { QString name; QVariant value; }; | - |
27 | - | |
28 | QQmlContext(QQmlEngine *parent, QObject *objParent = nullptr); | - |
29 | QQmlContext(QQmlContext *parent, QObject *objParent = nullptr); | - |
30 | ~QQmlContext() override; | - |
31 | - | |
32 | bool isValid() const; | - |
33 | - | |
34 | QQmlEngine *engine() const; | - |
35 | QQmlContext *parentContext() const; | - |
36 | - | |
37 | QObject *contextObject() const; | - |
38 | void setContextObject(QObject *); | - |
39 | - | |
40 | QVariant contextProperty(const QString &) const; | - |
41 | void setContextProperty(const QString &, QObject *); | - |
42 | void setContextProperty(const QString &, const QVariant &); | - |
43 | void setContextProperties(const QVector<PropertyPair> &properties); | - |
44 | - | |
45 | - | |
46 | QString nameForObject(QObject *) const; | - |
47 | - | |
48 | QUrl resolvedUrl(const QUrl &); | - |
49 | - | |
50 | void setBaseUrl(const QUrl &); | - |
51 | QUrl baseUrl() const; | - |
52 | - | |
53 | private: | - |
54 | friend class QQmlEngine; | - |
55 | friend class QQmlEnginePrivate; | - |
56 | friend class QQmlExpression; | - |
57 | friend class QQmlExpressionPrivate; | - |
58 | friend class QQmlComponent; | - |
59 | friend class QQmlComponentPrivate; | - |
60 | friend class QQmlScriptPrivate; | - |
61 | friend class QQmlContextData; | - |
62 | QQmlContext(QQmlContextData *); | - |
63 | QQmlContext(QQmlEngine *, bool); | - |
64 | QQmlContext(const QQmlContext &) = delete; QQmlContext &operator=(const QQmlContext &) = delete; | - |
65 | }; | - |
66 | - | |
67 | - | |
68 | template <> struct QMetaTypeId< QList<QObject*> > { 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< QList<QObject*> >("QList<QObject*>", reinterpret_cast< QList<QObject*> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
Switch to Source code | Preprocessed file |