Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | class QQuickLoaderPrivate; | - |
8 | class QQuickLoaderIncubator : public QQmlIncubator | - |
9 | { | - |
10 | public: | - |
11 | QQuickLoaderIncubator(QQuickLoaderPrivate *l, IncubationMode mode) : QQmlIncubator(mode), loader(l) {}executed 304 times by 14 tests: end of block Executed by:- tst_examples
- tst_qqmlconnections
- tst_qqmlecmascript
- tst_qqmltypeloader
- tst_qqmlxmlhttprequest
- tst_qquickanimations
- tst_qquickflickable
- tst_qquickgridview
- tst_qquickitem
- tst_qquickitem2
- tst_qquicklistview
- tst_qquickloader
- tst_qquickpathview
- tst_qquickrepeater
| 304 |
12 | | - |
13 | protected: | - |
14 | void statusChanged(Status) override; | - |
15 | void setInitialState(QObject *) override; | - |
16 | | - |
17 | private: | - |
18 | QQuickLoaderPrivate *loader; | - |
19 | }; | - |
20 | | - |
21 | class QQmlContext; | - |
22 | class QQuickLoaderPrivate : public QQuickImplicitSizeItemPrivate, public QQuickItemChangeListener | - |
23 | { | - |
24 | inline QQuickLoader* q_func() { return static_cast<QQuickLoader *>(q_ptr); } inline const QQuickLoader* q_func() const { return static_cast<const QQuickLoader *>(q_ptr); } friend class QQuickLoader; | - |
25 | | - |
26 | public: | - |
27 | QQuickLoaderPrivate(); | - |
28 | ~QQuickLoaderPrivate(); | - |
29 | | - |
30 | void itemGeometryChanged(QQuickItem *item, QQuickGeometryChange change, const QRectF &oldGeometry) override; | - |
31 | void itemImplicitWidthChanged(QQuickItem *) override; | - |
32 | void itemImplicitHeightChanged(QQuickItem *) override; | - |
33 | void clear(); | - |
34 | void initResize(); | - |
35 | void load(); | - |
36 | | - |
37 | void incubatorStateChanged(QQmlIncubator::Status status); | - |
38 | void setInitialState(QObject *o); | - |
39 | void disposeInitialPropertyValues(); | - |
40 | static QUrl resolveSourceUrl(QQmlV4Function *args); | - |
41 | QV4::ReturnedValue extractInitialPropertyValues(QQmlV4Function *args, QObject *loader, bool *error); | - |
42 | | - |
43 | qreal getImplicitWidth() const override; | - |
44 | qreal getImplicitHeight() const override; | - |
45 | | - |
46 | QUrl source; | - |
47 | QQuickItem *item; | - |
48 | QObject *object; | - |
49 | QQmlStrongJSQObjectReference<QQmlComponent> component; | - |
50 | QQmlContext *itemContext; | - |
51 | QQuickLoaderIncubator *incubator; | - |
52 | QV4::PersistentValue initialPropertyValues; | - |
53 | QV4::PersistentValue qmlCallingContext; | - |
54 | bool updatingSize: 1; | - |
55 | bool active : 1; | - |
56 | bool loadingFromSource : 1; | - |
57 | bool asynchronous : 1; | - |
58 | | - |
59 | void _q_sourceLoaded(); | - |
60 | void _q_updateSize(bool loaderGeometryChanged = true); | - |
61 | }; | - |
62 | | - |
63 | | - |
| | |