| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickloader_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | class QQuickLoaderPrivate; | - |
| 4 | class __attribute__((visibility("default"))) QQuickLoader : public QQuickImplicitSizeItem | - |
| 5 | { | - |
| 6 | public: | - |
| 7 | #pragma GCC diagnostic push | - |
| 8 | - | |
| 9 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 10 | 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: | - |
| 11 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 12 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 13 | #pragma GCC diagnostic pop | - |
| 14 | struct QPrivateSignal {}; | - |
| 15 | - | |
| 16 | - | |
| 17 | - | |
| 18 | - | |
| 19 | - | |
| 20 | - | |
| 21 | - | |
| 22 | - | |
| 23 | - | |
| 24 | public: | - |
| 25 | QQuickLoader(QQuickItem *parent = nullptr); | - |
| 26 | virtual ~QQuickLoader(); | - |
| 27 | - | |
| 28 | bool active() const; | - |
| 29 | void setActive(bool newVal); | - |
| 30 | - | |
| 31 | void setSource(QQmlV4Function *); | - |
| 32 | - | |
| 33 | QUrl source() const; | - |
| 34 | void setSource(const QUrl &); | - |
| 35 | - | |
| 36 | QQmlComponent *sourceComponent() const; | - |
| 37 | void setSourceComponent(QQmlComponent *); | - |
| 38 | void resetSourceComponent(); | - |
| 39 | - | |
| 40 | enum Status { Null, Ready, Loading, Error }; | - |
| 41 | friend constexpr const QMetaObject *qt_getEnumMetaObject(Status) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(Status) noexcept { return "Status"; } | - |
| 42 | Status status() const; | - |
| 43 | qreal progress() const; | - |
| 44 | - | |
| 45 | bool asynchronous() const; | - |
| 46 | void setAsynchronous(bool a); | - |
| 47 | - | |
| 48 | QObject *item() const; | - |
| 49 | - | |
| 50 | public : | - |
| 51 | void itemChanged(); | - |
| 52 | void activeChanged(); | - |
| 53 | void sourceChanged(); | - |
| 54 | void sourceComponentChanged(); | - |
| 55 | void statusChanged(); | - |
| 56 | void progressChanged(); | - |
| 57 | void loaded(); | - |
| 58 | void asynchronousChanged(); | - |
| 59 | - | |
| 60 | protected: | - |
| 61 | void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override; | - |
| 62 | void componentComplete() override; | - |
| 63 | void itemChange(ItemChange change, const ItemChangeData &value) override; | - |
| 64 | - | |
| 65 | private: | - |
| 66 | void setSource(const QUrl &sourceUrl, bool needsClear); | - |
| 67 | void loadFromSource(); | - |
| 68 | void loadFromSourceComponent(); | - |
| 69 | QQuickLoader(const QQuickLoader &) = delete; QQuickLoader &operator=(const QQuickLoader &) = delete; | - |
| 70 | inline QQuickLoaderPrivate* d_func() { return executed 1994 times by 15 tests: reinterpret_cast<QQuickLoaderPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickLoaderPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 1994 times by 15 tests: } inline const QQuickLoaderPrivate* d_func() const { returnreturn reinterpret_cast<QQuickLoaderPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 1340 times by 15 tests: reinterpret_cast<const QQuickLoaderPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickLoaderPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 1340 times by 15 tests: } friend class QQuickLoaderPrivate;return reinterpret_cast<const QQuickLoaderPrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 1340-1994 |
| 71 | - | |
| 72 | - | |
| 73 | }; | - |
| 74 | - | |
| 75 | - | |
| 76 | - | |
| 77 | template <> struct QMetaTypeId< QQuickLoader * > { 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< QQuickLoader * >("QQuickLoader *", reinterpret_cast< QQuickLoader * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickLoader> > { 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< QQmlListProperty<QQuickLoader> >("QQmlListProperty<QQuickLoader>", reinterpret_cast< QQmlListProperty<QQuickLoader> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
| Switch to Source code | Preprocessed file |