OpenCoverage

qqmlcontext.h #2

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlcontext.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5class QString;-
6class QQmlEngine;-
7class QQmlRefCount;-
8class QQmlContextPrivate;-
9class QQmlCompositeTypeData;-
10class QQmlContextData;-
11-
12class __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: return reinterpret_cast<QQmlContextPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
reinterpret_cast<QQmlContextPrivate *>(qGetPtrHelper(d_ptr));
executed 161892 times by 150 tests: return reinterpret_cast<QQmlContextPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_bindingdependencyapi
  • tst_drawingmodes
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_parserstress
  • tst_qjsengine
  • tst_qmlcachegen
  • tst_qmldiskcache
  • tst_qqmlapplicationengine
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmldebugclient
  • tst_qqmldebugjs
  • tst_qqmldebuglocal
  • tst_qqmldebugservice
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • ...
} inline const QQmlContextPrivate* d_func() const { return
executed 363774 times by 64 tests: return reinterpret_cast<const QQmlContextPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
reinterpret_cast<const QQmlContextPrivate *>(qGetPtrHelper(d_ptr));
executed 363774 times by 64 tests: return reinterpret_cast<const QQmlContextPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qqmlbinding
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlconsole
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmllistreference
  • tst_qqmllocale
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmlpropertymap
  • tst_qqmlqt
  • tst_qqmlstatemachine
  • tst_qqmltranslation
  • tst_qqmltypeloader
  • tst_qqmlvaluetypeproviders
  • tst_qqmlvaluetypes
  • tst_qqmlxmlhttprequest
  • ...
} friend class QQmlContextPrivate;
161892-363774
24-
25public:-
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-
53private:-
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
const int id =....loadAcquire()Description
TRUEnever evaluated
FALSEnever evaluated
int id = metatype_id.loadAcquire()
const int id =....loadAcquire()Description
TRUEnever evaluated
FALSEnever evaluated
) return
never executed: return id;
id;
never executed: return id;
const int newId = qRegisterMetaType< QList<QObject*> >("QList<QObject*>", reinterpret_cast< QList<QObject*> *>(quintptr(-1))); metatype_id.storeRelease(newId); return
never executed: return newId;
newId;
never executed: return newId;
} };
0
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0