OpenCoverage

qquickitemview_p.h

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/items/qquickitemview_p.h
Switch to Source codePreprocessed file
LineSourceCount
1-
2static_assert(bool(1 == 1), "Required feature " "quick_itemview" " for file " __FILE__ " not available.");-
3-
4-
5-
6-
7-
8extern const QLoggingCategory &lcItemViewDelegateLifecycle();-
9-
10class QQmlChangeSet;-
11-
12class QQuickItemViewPrivate;-
13-
14class __attribute__((visibility("default"))) QQuickItemView : public QQuickFlickable-
15{-
16 public:-
17#pragma GCC diagnostic push-
18 -
19#pragma GCC diagnostic ignored "-Wsuggest-override"-
20 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:-
21#pragma GCC diagnostic ignored "-Wattributes"-
22 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
23#pragma GCC diagnostic pop-
24 struct QPrivateSignal {};-
25-
26 -
27 -
28 -
29-
30 -
31 -
32-
33 -
34 -
35 -
36 -
37 -
38-
39 -
40 -
41 -
42-
43 -
44 -
45 -
46 -
47-
48 -
49 -
50 -
51 -
52 -
53 -
54 -
55 -
56-
57 -
58 -
59 -
60 -
61 -
62 -
63 -
64-
65public:-
66-
67-
68-
69 enum LayoutDirection {-
70 LeftToRight = Qt::LeftToRight,-
71 RightToLeft = Qt::RightToLeft,-
72 VerticalTopToBottom,-
73 VerticalBottomToTop-
74 };-
75 friend constexpr const QMetaObject *qt_getEnumMetaObject(LayoutDirection) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(LayoutDirection) noexcept { return "LayoutDirection"; }-
76-
77 enum VerticalLayoutDirection {-
78 TopToBottom = VerticalTopToBottom,-
79 BottomToTop = VerticalBottomToTop-
80 };-
81 friend constexpr const QMetaObject *qt_getEnumMetaObject(VerticalLayoutDirection) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(VerticalLayoutDirection) noexcept { return "VerticalLayoutDirection"; }-
82-
83 QQuickItemView(QQuickFlickablePrivate &dd, QQuickItem *parent = nullptr);-
84 ~QQuickItemView();-
85-
86 QVariant model() const;-
87 void setModel(const QVariant &);-
88-
89 QQmlComponent *delegate() const;-
90 void setDelegate(QQmlComponent *);-
91-
92 int count() const;-
93-
94 int currentIndex() const;-
95 void setCurrentIndex(int idx);-
96-
97 QQuickItem *currentItem() const;-
98-
99 bool isWrapEnabled() const;-
100 void setWrapEnabled(bool);-
101-
102 bool isKeyNavigationEnabled() const;-
103 void setKeyNavigationEnabled(bool);-
104-
105 int cacheBuffer() const;-
106 void setCacheBuffer(int);-
107-
108 int displayMarginBeginning() const;-
109 void setDisplayMarginBeginning(int);-
110-
111 int displayMarginEnd() const;-
112 void setDisplayMarginEnd(int);-
113-
114 Qt::LayoutDirection layoutDirection() const;-
115 void setLayoutDirection(Qt::LayoutDirection);-
116 Qt::LayoutDirection effectiveLayoutDirection() const;-
117-
118 VerticalLayoutDirection verticalLayoutDirection() const;-
119 void setVerticalLayoutDirection(VerticalLayoutDirection layoutDirection);-
120-
121 QQmlComponent *footer() const;-
122 void setFooter(QQmlComponent *);-
123 QQuickItem *footerItem() const;-
124-
125 QQmlComponent *header() const;-
126 void setHeader(QQmlComponent *);-
127 QQuickItem *headerItem() const;-
128-
129 QQuickTransition *populateTransition() const;-
130 void setPopulateTransition(QQuickTransition *transition);-
131-
132 QQuickTransition *addTransition() const;-
133 void setAddTransition(QQuickTransition *transition);-
134-
135 QQuickTransition *addDisplacedTransition() const;-
136 void setAddDisplacedTransition(QQuickTransition *transition);-
137-
138 QQuickTransition *moveTransition() const;-
139 void setMoveTransition(QQuickTransition *transition);-
140-
141 QQuickTransition *moveDisplacedTransition() const;-
142 void setMoveDisplacedTransition(QQuickTransition *transition);-
143-
144 QQuickTransition *removeTransition() const;-
145 void setRemoveTransition(QQuickTransition *transition);-
146-
147 QQuickTransition *removeDisplacedTransition() const;-
148 void setRemoveDisplacedTransition(QQuickTransition *transition);-
149-
150 QQuickTransition *displacedTransition() const;-
151 void setDisplacedTransition(QQuickTransition *transition);-
152-
153 QQmlComponent *highlight() const;-
154 void setHighlight(QQmlComponent *);-
155-
156 QQuickItem *highlightItem() const;-
157-
158 bool highlightFollowsCurrentItem() const;-
159 virtual void setHighlightFollowsCurrentItem(bool);-
160-
161 enum HighlightRangeMode { NoHighlightRange, ApplyRange, StrictlyEnforceRange };-
162 friend constexpr const QMetaObject *qt_getEnumMetaObject(HighlightRangeMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(HighlightRangeMode) noexcept { return "HighlightRangeMode"; }-
163 HighlightRangeMode highlightRangeMode() const;-
164 void setHighlightRangeMode(HighlightRangeMode mode);-
165-
166 qreal preferredHighlightBegin() const;-
167 void setPreferredHighlightBegin(qreal);-
168 void resetPreferredHighlightBegin();-
169-
170 qreal preferredHighlightEnd() const;-
171 void setPreferredHighlightEnd(qreal);-
172 void resetPreferredHighlightEnd();-
173-
174 int highlightMoveDuration() const;-
175 virtual void setHighlightMoveDuration(int);-
176-
177 enum PositionMode { Beginning, Center, End, Visible, Contain, SnapPosition };-
178 friend constexpr const QMetaObject *qt_getEnumMetaObject(PositionMode) noexcept { return &staticMetaObject; } friend constexpr const char *qt_getEnumName(PositionMode) noexcept { return "PositionMode"; }-
179-
180 void positionViewAtIndex(int index, int mode);-
181 int indexAt(qreal x, qreal y) const;-
182 QQuickItem *itemAt(qreal x, qreal y) const;-
183 void positionViewAtBeginning();-
184 void positionViewAtEnd();-
185 void forceLayout();-
186-
187 void setContentX(qreal pos) override;-
188 void setContentY(qreal pos) override;-
189 qreal originX() const override;-
190 qreal originY() const override;-
191-
192public :-
193 void modelChanged();-
194 void delegateChanged();-
195 void countChanged();-
196 void currentIndexChanged();-
197 void currentItemChanged();-
198-
199 void keyNavigationWrapsChanged();-
200 void keyNavigationEnabledChanged();-
201 void cacheBufferChanged();-
202 void displayMarginBeginningChanged();-
203 void displayMarginEndChanged();-
204-
205 void layoutDirectionChanged();-
206 void effectiveLayoutDirectionChanged();-
207 void verticalLayoutDirectionChanged();-
208-
209 void headerChanged();-
210 void footerChanged();-
211 void headerItemChanged();-
212 void footerItemChanged();-
213-
214 void populateTransitionChanged();-
215 void addTransitionChanged();-
216 void addDisplacedTransitionChanged();-
217 void moveTransitionChanged();-
218 void moveDisplacedTransitionChanged();-
219 void removeTransitionChanged();-
220 void removeDisplacedTransitionChanged();-
221 void displacedTransitionChanged();-
222-
223 void highlightChanged();-
224 void highlightItemChanged();-
225 void highlightFollowsCurrentItemChanged();-
226 void highlightRangeModeChanged();-
227 void preferredHighlightBeginChanged();-
228 void preferredHighlightEndChanged();-
229 void highlightMoveDurationChanged();-
230-
231protected:-
232 void updatePolish() override;-
233 void componentComplete() override;-
234 void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;-
235 qreal minYExtent() const override;-
236 qreal maxYExtent() const override;-
237 qreal minXExtent() const override;-
238 qreal maxXExtent() const override;-
239-
240protected :-
241 void destroyRemoved();-
242 void createdItem(int index, QObject *item);-
243 virtual void initItem(int index, QObject *item);-
244 void modelUpdated(const QQmlChangeSet &changeSet, bool reset);-
245 void destroyingItem(QObject *item);-
246 void animStopped();-
247 void trackedPositionChanged();-
248-
249private:-
250 inline QQuickItemViewPrivate* d_func() { return
executed 290718 times by 12 tests: return reinterpret_cast<QQuickItemViewPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
reinterpret_cast<QQuickItemViewPrivate *>(qGetPtrHelper(d_ptr));
executed 290718 times by 12 tests: return reinterpret_cast<QQuickItemViewPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
} inline const QQuickItemViewPrivate* d_func() const { return
executed 2474325 times by 12 tests: return reinterpret_cast<const QQuickItemViewPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
reinterpret_cast<const QQuickItemViewPrivate *>(qGetPtrHelper(d_ptr));
executed 2474325 times by 12 tests: return reinterpret_cast<const QQuickItemViewPrivate *>(qGetPtrHelper(d_ptr));
Executed by:
  • tst_examples
  • tst_qqmlecmascript
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
} friend class QQuickItemViewPrivate;
290718-2474325
251};-
252-
253-
254class __attribute__((visibility("default"))) QQuickItemViewAttached : public QObject-
255{-
256 public:-
257#pragma GCC diagnostic push-
258 -
259#pragma GCC diagnostic ignored "-Wsuggest-override"-
260 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:-
261#pragma GCC diagnostic ignored "-Wattributes"-
262 __attribute__((visibility("hidden"))) static void qt_static_metacall(QObject *, QMetaObject::Call, int, void **);-
263#pragma GCC diagnostic pop-
264 struct QPrivateSignal {};-
265-
266 -
267 -
268 -
269-
270 -
271 -
272 -
273-
274public:-
275 QQuickItemViewAttached(QObject *parent)-
276 : QObject(parent), m_isCurrent(false), m_delayRemove(false) {}
executed 80989 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
80989
277 ~QQuickItemViewAttached() {}-
278-
279 QQuickItemView *view() const { return
executed 1216 times by 4 tests: return m_view;
Executed by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
m_view;
executed 1216 times by 4 tests: return m_view;
Executed by:
  • tst_examples
  • tst_qqmltypeloader
  • tst_qquickgridview
  • tst_qquicklistview
}
1216
280 void setView(QQuickItemView *view) {-
281 if (view != m_view
view != m_viewDescription
TRUEevaluated 80899 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
FALSEevaluated 83308 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
) {
80899-83308
282 m_view = view;-
283 viewChanged();-
284 }
executed 80899 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
80899
285 }
executed 164207 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
164207
286-
287 bool isCurrentItem() const { return
executed 71234 times by 4 tests: return m_isCurrent;
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
m_isCurrent;
executed 71234 times by 4 tests: return m_isCurrent;
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
}
71234
288 void setIsCurrentItem(bool c) {-
289 if (m_isCurrent != c
m_isCurrent != cDescription
TRUEevaluated 7638 times by 11 tests
Evaluated by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
FALSEevaluated 824 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
824-7638
290 m_isCurrent = c;-
291 currentItemChanged();-
292 }
executed 7638 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
7638
293 }
executed 8462 times by 11 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmltypeloader
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickmousearea
  • tst_qquickspringanimation
  • tst_qquickvisualdatamodel
8462
294-
295 bool delayRemove() const { return
executed 14833 times by 4 tests: return m_delayRemove;
Executed by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
m_delayRemove;
executed 14833 times by 4 tests: return m_delayRemove;
Executed by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
}
14833
296 void setDelayRemove(bool delay) {-
297 if (m_delayRemove != delay
m_delayRemove != delayDescription
TRUEevaluated 210 times by 3 tests
Evaluated by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
FALSEevaluated 84 times by 2 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
) {
84-210
298 m_delayRemove = delay;-
299 delayRemoveChanged();-
300 }
executed 210 times by 3 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
210
301 }
executed 294 times by 3 tests: end of block
Executed by:
  • tst_qquickanimations
  • tst_qquickgridview
  • tst_qquicklistview
294
302-
303 QString section() const { return
executed 16705 times by 4 tests: return m_section;
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
m_section;
executed 16705 times by 4 tests: return m_section;
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
}
16705
304 void setSection(const QString &sect) {-
305 if (m_section != sect
m_section != sectDescription
TRUEevaluated 873 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 5301 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
) {
873-5301
306 m_section = sect;-
307 sectionChanged();-
308 }
executed 873 times by 2 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
873
309 }
executed 6174 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
6174
310-
311 QString prevSection() const { return
executed 2042 times by 1 test: return m_prevSection;
Executed by:
  • tst_qquicklistview
m_prevSection;
executed 2042 times by 1 test: return m_prevSection;
Executed by:
  • tst_qquicklistview
}
2042
312 void setPrevSection(const QString &sect) {-
313 if (m_prevSection != sect
m_prevSection != sectDescription
TRUEevaluated 824 times by 2 tests
Evaluated by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 5388 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
824-5388
314 m_prevSection = sect;-
315 prevSectionChanged();-
316 }
executed 824 times by 2 tests: end of block
Executed by:
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
824
317 }
executed 6212 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
6212
318-
319 QString nextSection() const { return
executed 1634 times by 1 test: return m_nextSection;
Executed by:
  • tst_qquicklistview
m_nextSection;
executed 1634 times by 1 test: return m_nextSection;
Executed by:
  • tst_qquicklistview
}
1634
320 void setNextSection(const QString &sect) {-
321 if (m_nextSection != sect
m_nextSection != sectDescription
TRUEevaluated 885 times by 3 tests
Evaluated by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 5327 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
) {
885-5327
322 m_nextSection = sect;-
323 nextSectionChanged();-
324 }
executed 885 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
885
325 }
executed 6212 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
6212
326-
327 void setSections(const QString &prev, const QString &sect, const QString &next) {-
328 bool prevChanged = prev != m_prevSection;-
329 bool sectChanged = sect != m_section;-
330 bool nextChanged = next != m_nextSection;-
331 m_prevSection = prev;-
332 m_section = sect;-
333 m_nextSection = next;-
334 if (prevChanged
prevChangedDescription
TRUEevaluated 508 times by 3 tests
Evaluated by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 112 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
)
112-508
335 prevSectionChanged();
executed 508 times by 3 tests: prevSectionChanged();
Executed by:
  • tst_examples
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
508
336 if (sectChanged
sectChangedDescription
TRUEevaluated 556 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 64 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
)
64-556
337 sectionChanged();
executed 556 times by 4 tests: sectionChanged();
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
556
338 if (nextChanged
nextChangedDescription
TRUEevaluated 474 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
FALSEevaluated 146 times by 4 tests
Evaluated by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
)
146-474
339 nextSectionChanged();
executed 474 times by 4 tests: nextSectionChanged();
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
474
340 }
executed 620 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
620
341-
342 void emitAdd() { add(); }
executed 7480 times by 4 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
7480
343 void emitRemove() { remove(); }
executed 4003 times by 3 tests: end of block
Executed by:
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickvisualdatamodel
4003
344-
345public :-
346 void viewChanged();-
347 void currentItemChanged();-
348 void delayRemoveChanged();-
349-
350 void add();-
351 void remove();-
352-
353 void sectionChanged();-
354 void prevSectionChanged();-
355 void nextSectionChanged();-
356-
357public:-
358 QPointer<QQuickItemView> m_view;-
359 bool m_isCurrent : 1;-
360 bool m_delayRemove : 1;-
361-
362-
363 mutable QString m_section;-
364 QString m_prevSection;-
365 QString m_nextSection;-
366};-
367-
368-
369-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0