OpenCoverage

qqmlcomponent_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlcomponent_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10class QQmlComponent;-
11class QQmlEngine;-
12-
13class QQmlComponentAttached;-
14class __attribute__((visibility("default"))) QQmlComponentPrivate : public QObjectPrivate, public QQmlTypeData::TypeDataCallback-
15{-
16 inline QQmlComponent* q_func() { return static_cast<QQmlComponent *>(q_ptr); } inline const QQmlComponent* q_func() const { return static_cast<const QQmlComponent *>(q_ptr); } friend class QQmlComponent;-
17-
18public:-
19 QQmlComponentPrivate()-
20 : progress(0.), start(-1), engine(nullptr), creationContext(nullptr) {}
executed 68735 times by 141 tests: end of block
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
68735
21-
22 void loadUrl(const QUrl &newUrl, QQmlComponent::CompilationMode mode = QQmlComponent::PreferSynchronous);-
23-
24 QObject *beginCreate(QQmlContextData *);-
25 void completeCreate();-
26 void initializeObjectWithInitialProperties(QV4::QmlContext *qmlContext, const QV4::Value &valuemap, QObject *toCreate);-
27 static void setInitialProperties(QV4::ExecutionEngine *engine, QV4::QmlContext *qmlContext, const QV4::Value &o, const QV4::Value &v);-
28-
29 void incubateObject(-
30 QQmlIncubator *incubationTask,-
31 QQmlComponent *component,-
32 QQmlEngine *engine,-
33 QQmlContextData *context,-
34 QQmlContextData *forContext);-
35-
36 QQmlRefPointer<QQmlTypeData> typeData;-
37 void typeDataReady(QQmlTypeData *) override;-
38 void typeDataProgress(QQmlTypeData *, qreal) override;-
39-
40 void fromTypeData(const QQmlRefPointer<QQmlTypeData> &data);-
41-
42 QUrl url;-
43 qreal progress;-
44-
45 int start;-
46 QQmlRefPointer<QV4::CompiledData::CompilationUnit> compilationUnit;-
47-
48 struct ConstructionState {-
49 ConstructionState()-
50 : completePending(false)-
51 {}
executed 70415 times by 141 tests: end of block
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_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlenginecleanup
  • tst_qqmlenginedebugservice
  • tst_qqmlexpression
  • tst_qqmlfileselector
  • tst_qqmlimport
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • ...
70415
52 ~ConstructionState()-
53 {-
54 }-
55-
56 QScopedPointer<QQmlObjectCreator> creator;-
57 QList<QQmlError> errors;-
58 bool completePending;-
59 };-
60 ConstructionState state;-
61-
62 struct DeferredState {-
63 ~DeferredState() {-
64 qDeleteAll(constructionStates);-
65 constructionStates.clear();-
66 }
never executed: end of block
0
67 QVector<ConstructionState *> constructionStates;-
68 };-
69-
70 static void beginDeferred(QQmlEnginePrivate *enginePriv, QObject *object, DeferredState* deferredState);-
71 static void completeDeferred(QQmlEnginePrivate *enginePriv, DeferredState *deferredState);-
72-
73 static void complete(QQmlEnginePrivate *enginePriv, ConstructionState *state);-
74-
75 QQmlEngine *engine;-
76 QQmlGuardedContextData creationContext;-
77-
78 void clear();-
79-
80 static QQmlComponentPrivate *get(QQmlComponent *c) {-
81 return
executed 187156 times by 43 tests: return static_cast<QQmlComponentPrivate *>(QObjectPrivate::get(c));
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • ...
static_cast<QQmlComponentPrivate *>(QObjectPrivate::get(c));
executed 187156 times by 43 tests: return static_cast<QQmlComponentPrivate *>(QObjectPrivate::get(c));
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qmlcachegen
  • tst_qqmlcomponent
  • tst_qqmlconnections
  • tst_qqmlcontext
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmlincubator
  • tst_qqmlinfo
  • tst_qqmlinstantiator
  • tst_qqmllistmodel
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimationcontroller
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquickitem
  • tst_qquickitem2
  • tst_qquickitemlayer
  • ...
187156
82 }-
83};-
84-
85-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0