Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlcomponent_p.h |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | - | |
7 | - | |
8 | - | |
9 | - | |
10 | class QQmlComponent; | - |
11 | class QQmlEngine; | - |
12 | - | |
13 | class QQmlComponentAttached; | - |
14 | class __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 | - | |
18 | public: | - |
19 | QQmlComponentPrivate() | - |
20 | : progress(0.), start(-1), engine(nullptr), creationContext(nullptr) {} executed 68735 times by 141 tests: end of block Executed by:
| 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:
| 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: static_cast<QQmlComponentPrivate *>(QObjectPrivate::get(c));return static_cast<QQmlComponentPrivate *>(QObjectPrivate::get(c)); Executed by:
executed 187156 times by 43 tests: return static_cast<QQmlComponentPrivate *>(QObjectPrivate::get(c)); Executed by:
| 187156 |
82 | } | - |
83 | }; | - |
84 | - | |
85 | - | |
Switch to Source code | Preprocessed file |