| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickrepeater_p.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | static_assert(bool(1 == 1), "Required feature " "quick_repeater" " for file " __FILE__ " not available."); | - |
| 3 | - | |
| 4 | - | |
| 5 | - | |
| 6 | class QQmlChangeSet; | - |
| 7 | - | |
| 8 | class QQuickRepeaterPrivate; | - |
| 9 | class __attribute__((visibility("default"))) QQuickRepeater : public QQuickItem | - |
| 10 | { | - |
| 11 | public: | - |
| 12 | #pragma GCC diagnostic push | - |
| 13 | - | |
| 14 | #pragma GCC diagnostic ignored "-Wsuggest-override" | - |
| 15 | 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: | - |
| 16 | #pragma GCC diagnostic ignored "-Wattributes" | - |
| 17 | __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **); | - |
| 18 | #pragma GCC diagnostic pop | - |
| 19 | struct QPrivateSignal {}; | - |
| 20 | - | |
| 21 | - | |
| 22 | - | |
| 23 | - | |
| 24 | - | |
| 25 | - | |
| 26 | public: | - |
| 27 | QQuickRepeater(QQuickItem *parent=nullptr); | - |
| 28 | virtual ~QQuickRepeater(); | - |
| 29 | - | |
| 30 | QVariant model() const; | - |
| 31 | void setModel(const QVariant &); | - |
| 32 | - | |
| 33 | QQmlComponent *delegate() const; | - |
| 34 | void setDelegate(QQmlComponent *); | - |
| 35 | - | |
| 36 | int count() const; | - |
| 37 | - | |
| 38 | QQuickItem *itemAt(int index) const; | - |
| 39 | - | |
| 40 | public : | - |
| 41 | void modelChanged(); | - |
| 42 | void delegateChanged(); | - |
| 43 | void countChanged(); | - |
| 44 | - | |
| 45 | void itemAdded(int index, QQuickItem *item); | - |
| 46 | void itemRemoved(int index, QQuickItem *item); | - |
| 47 | - | |
| 48 | private: | - |
| 49 | void clear(); | - |
| 50 | void regenerate(); | - |
| 51 | - | |
| 52 | protected: | - |
| 53 | void componentComplete() override; | - |
| 54 | void itemChange(ItemChange change, const ItemChangeData &value) override; | - |
| 55 | - | |
| 56 | private : | - |
| 57 | void createdItem(int index, QObject *item); | - |
| 58 | void initItem(int, QObject *item); | - |
| 59 | void modelUpdated(const QQmlChangeSet &changeSet, bool reset); | - |
| 60 | - | |
| 61 | private: | - |
| 62 | QQuickRepeater(const QQuickRepeater &) = delete; QQuickRepeater &operator=(const QQuickRepeater &) = delete; | - |
| 63 | inline QQuickRepeaterPrivate* d_func() { return executed 37112 times by 16 tests: reinterpret_cast<QQuickRepeaterPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<QQuickRepeaterPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 37112 times by 16 tests: } inline const QQuickRepeaterPrivate* d_func() const { returnreturn reinterpret_cast<QQuickRepeaterPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 1636 times by 16 tests: reinterpret_cast<const QQuickRepeaterPrivate *>(qGetPtrHelper(d_ptr));return reinterpret_cast<const QQuickRepeaterPrivate *>(qGetPtrHelper(d_ptr));Executed by:
executed 1636 times by 16 tests: } friend class QQuickRepeaterPrivate;return reinterpret_cast<const QQuickRepeaterPrivate *>(qGetPtrHelper(d_ptr));Executed by:
| 1636-37112 |
| 64 | }; | - |
| 65 | - | |
| 66 | - | |
| 67 | - | |
| 68 | template <> struct QMetaTypeId< QQuickRepeater * > { 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< QQuickRepeater * >("QQuickRepeater *", reinterpret_cast< QQuickRepeater * *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; template <> struct QMetaTypeId< QQmlListProperty<QQuickRepeater> > { 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<QQuickRepeater> >("QQmlListProperty<QQuickRepeater>", reinterpret_cast< QQmlListProperty<QQuickRepeater> *>(quintptr(-1))); metatype_id.storeRelease(newId); return newId; } }; | - |
| Switch to Source code | Preprocessed file |