OpenCoverage

qquickrepeater_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickrepeater_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2static_assert(bool(1 == 1), "Required feature " "quick_repeater" " for file " __FILE__ " not available.");-
3-
4-
5-
6class QQmlChangeSet;-
7-
8class QQuickRepeaterPrivate;-
9class __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-
26public:-
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-
40public :-
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-
48private:-
49 void clear();-
50 void regenerate();-
51-
52protected:-
53 void componentComplete() override;-
54 void itemChange(ItemChange change, const ItemChangeData &value) override;-
55-
56private :-
57 void createdItem(int index, QObject *item);-
58 void initItem(int, QObject *item);-
59 void modelUpdated(const QQmlChangeSet &changeSet, bool reset);-
60-
61private:-
62 QQuickRepeater(const QQuickRepeater &) = delete; QQuickRepeater &operator=(const QQuickRepeater &) = delete;-
63 inline QQuickRepeaterPrivate* d_func() { return
executed 37112 times by 16 tests: return reinterpret_cast<QQuickRepeaterPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
reinterpret_cast<QQuickRepeaterPrivate *>(qGetPtrHelper(d_ptr));
executed 37112 times by 16 tests: return reinterpret_cast<QQuickRepeaterPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
} inline const QQuickRepeaterPrivate* d_func() const { return
executed 1636 times by 16 tests: return reinterpret_cast<const QQuickRepeaterPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
reinterpret_cast<const QQuickRepeaterPrivate *>(qGetPtrHelper(d_ptr));
executed 1636 times by 16 tests: return reinterpret_cast<const QQuickRepeaterPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_multipointtoucharea_interop
  • tst_qqmlecmascript
  • tst_qqmlqt
  • tst_qqmltypeloader
  • tst_qquickdraghandler
  • tst_qquickflickable
  • tst_qquickitem2
  • tst_qquickitemparticle
  • tst_qquicklayouts
  • tst_qquicklistview
  • tst_qquickpositioners
  • tst_qquickrepeater
  • tst_qquickshortcut
  • tst_qquickvisualdatamodel
  • tst_scenegraph
} friend class QQuickRepeaterPrivate;
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 codePreprocessed file

Generated by Squish Coco 4.2.0