OpenCoverage

moc_qquickrepeater_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquickrepeater_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qquickrepeater_p.h'-
3**-
4** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.0)-
5**-
6** WARNING! All changes made in this file will be lost!-
7*****************************************************************************/-
8-
9#include "../items/qquickrepeater_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qquickrepeater_p.h' doesn't include <QObject>."-
14#elif Q_MOC_OUTPUT_REVISION != 67-
15#error "This file was generated using the moc from 5.12.0. It"-
16#error "cannot be used with the include files from this version of Qt."-
17#error "(The moc has changed too much.)"-
18#endif-
19-
20QT_BEGIN_MOC_NAMESPACE-
21QT_WARNING_PUSH-
22QT_WARNING_DISABLE_DEPRECATED-
23struct qt_meta_stringdata_QQuickRepeater_t {-
24 QByteArrayData data[22];-
25 char stringdata0[226];-
26};-
27#define QT_MOC_LITERAL(idx, ofs, len) \-
28 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \-
29 qptrdiff(offsetof(qt_meta_stringdata_QQuickRepeater_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQuickRepeater_t qt_meta_stringdata_QQuickRepeater = {-
33 {-
34QT_MOC_LITERAL(0, 0, 14), // "QQuickRepeater"-
35QT_MOC_LITERAL(1, 15, 15), // "DefaultProperty"-
36QT_MOC_LITERAL(2, 31, 8), // "delegate"-
37QT_MOC_LITERAL(3, 40, 12), // "modelChanged"-
38QT_MOC_LITERAL(4, 53, 0), // ""-
39QT_MOC_LITERAL(5, 54, 15), // "delegateChanged"-
40QT_MOC_LITERAL(6, 70, 12), // "countChanged"-
41QT_MOC_LITERAL(7, 83, 9), // "itemAdded"-
42QT_MOC_LITERAL(8, 93, 5), // "index"-
43QT_MOC_LITERAL(9, 99, 11), // "QQuickItem*"-
44QT_MOC_LITERAL(10, 111, 4), // "item"-
45QT_MOC_LITERAL(11, 116, 11), // "itemRemoved"-
46QT_MOC_LITERAL(12, 128, 11), // "createdItem"-
47QT_MOC_LITERAL(13, 140, 8), // "initItem"-
48QT_MOC_LITERAL(14, 149, 12), // "modelUpdated"-
49QT_MOC_LITERAL(15, 162, 13), // "QQmlChangeSet"-
50QT_MOC_LITERAL(16, 176, 9), // "changeSet"-
51QT_MOC_LITERAL(17, 186, 5), // "reset"-
52QT_MOC_LITERAL(18, 192, 6), // "itemAt"-
53QT_MOC_LITERAL(19, 199, 5), // "model"-
54QT_MOC_LITERAL(20, 205, 14), // "QQmlComponent*"-
55QT_MOC_LITERAL(21, 220, 5) // "count"-
56-
57 },-
58 "QQuickRepeater\0DefaultProperty\0delegate\0"-
59 "modelChanged\0\0delegateChanged\0"-
60 "countChanged\0itemAdded\0index\0QQuickItem*\0"-
61 "item\0itemRemoved\0createdItem\0initItem\0"-
62 "modelUpdated\0QQmlChangeSet\0changeSet\0"-
63 "reset\0itemAt\0model\0QQmlComponent*\0"-
64 "count"-
65};-
66#undef QT_MOC_LITERAL-
67-
68static const uint qt_meta_data_QQuickRepeater[] = {-
69-
70 // content:-
71 7, // revision-
72 0, // classname-
73 1, 14, // classinfo-
74 9, 16, // methods-
75 3, 92, // properties-
76 0, 0, // enums/sets-
77 0, 0, // constructors-
78 0, // flags-
79 5, // signalCount-
80-
81 // classinfo: key, value-
82 1, 2,-
83-
84 // signals: name, argc, parameters, tag, flags-
85 3, 0, 61, 4, 0x06 /* Public */,-
86 5, 0, 62, 4, 0x06 /* Public */,-
87 6, 0, 63, 4, 0x06 /* Public */,-
88 7, 2, 64, 4, 0x06 /* Public */,-
89 11, 2, 69, 4, 0x06 /* Public */,-
90-
91 // slots: name, argc, parameters, tag, flags-
92 12, 2, 74, 4, 0x08 /* Private */,-
93 13, 2, 79, 4, 0x08 /* Private */,-
94 14, 2, 84, 4, 0x08 /* Private */,-
95-
96 // methods: name, argc, parameters, tag, flags-
97 18, 1, 89, 4, 0x02 /* Public */,-
98-
99 // signals: parameters-
100 QMetaType::Void,-
101 QMetaType::Void,-
102 QMetaType::Void,-
103 QMetaType::Void, QMetaType::Int, 0x80000000 | 9, 8, 10,-
104 QMetaType::Void, QMetaType::Int, 0x80000000 | 9, 8, 10,-
105-
106 // slots: parameters-
107 QMetaType::Void, QMetaType::Int, QMetaType::QObjectStar, 8, 10,-
108 QMetaType::Void, QMetaType::Int, QMetaType::QObjectStar, 4, 10,-
109 QMetaType::Void, 0x80000000 | 15, QMetaType::Bool, 16, 17,-
110-
111 // methods: parameters-
112 0x80000000 | 9, QMetaType::Int, 8,-
113-
114 // properties: name, type, flags-
115 19, QMetaType::QVariant, 0x00495103,-
116 2, 0x80000000 | 20, 0x0049510b,-
117 21, QMetaType::Int, 0x00495001,-
118-
119 // properties: notify_signal_id-
120 0,-
121 1,-
122 2,-
123-
124 0 // eod-
125};-
126-
127void QQuickRepeater::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
128{-
129 if (_c == QMetaObject::InvokeMetaMethod) {-
130 QQuickRepeater *_t = static_cast<QQuickRepeater *>(_o);-
131 Q_UNUSED(_t)-
132 switch (_id) {-
133 case 0: _t->modelChanged(); break;-
134 case 1: _t->delegateChanged(); break;-
135 case 2: _t->countChanged(); break;-
136 case 3: _t->itemAdded((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QQuickItem*(*)>(_a[2]))); break;-
137 case 4: _t->itemRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QQuickItem*(*)>(_a[2]))); break;-
138 case 5: _t->createdItem((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QObject*(*)>(_a[2]))); break;-
139 case 6: _t->initItem((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QObject*(*)>(_a[2]))); break;-
140 case 7: _t->modelUpdated((*reinterpret_cast< const QQmlChangeSet(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;-
141 case 8: { QQuickItem* _r = _t->itemAt((*reinterpret_cast< int(*)>(_a[1])));-
142 if (_a[0]) *reinterpret_cast< QQuickItem**>(_a[0]) = std::move(_r); } break;-
143 default: ;-
144 }-
145 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
146 switch (_id) {-
147 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
148 case 3:-
149 switch (*reinterpret_cast<int*>(_a[1])) {-
150 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
151 case 1:-
152 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItem* >(); break;-
153 }-
154 break;-
155 case 4:-
156 switch (*reinterpret_cast<int*>(_a[1])) {-
157 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
158 case 1:-
159 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItem* >(); break;-
160 }-
161 break;-
162 }-
163 } else if (_c == QMetaObject::IndexOfMethod) {-
164 int *result = reinterpret_cast<int *>(_a[0]);-
165 {-
166 using _t = void (QQuickRepeater::*)();-
167 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickRepeater::modelChanged)) {-
168 *result = 0;-
169 return;-
170 }-
171 }-
172 {-
173 using _t = void (QQuickRepeater::*)();-
174 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickRepeater::delegateChanged)) {-
175 *result = 1;-
176 return;-
177 }-
178 }-
179 {-
180 using _t = void (QQuickRepeater::*)();-
181 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickRepeater::countChanged)) {-
182 *result = 2;-
183 return;-
184 }-
185 }-
186 {-
187 using _t = void (QQuickRepeater::*)(int , QQuickItem * );-
188 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickRepeater::itemAdded)) {-
189 *result = 3;-
190 return;-
191 }-
192 }-
193 {-
194 using _t = void (QQuickRepeater::*)(int , QQuickItem * );-
195 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickRepeater::itemRemoved)) {-
196 *result = 4;-
197 return;-
198 }-
199 }-
200 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
201 switch (_id) {-
202 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
203 case 1:-
204 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlComponent* >(); break;-
205 }-
206 }-
207-
208#ifndef QT_NO_PROPERTIES-
209 else if (_c == QMetaObject::ReadProperty) {-
210 QQuickRepeater *_t = static_cast<QQuickRepeater *>(_o);-
211 Q_UNUSED(_t)-
212 void *_v = _a[0];-
213 switch (_id) {-
214 case 0: *reinterpret_cast< QVariant*>(_v) = _t->model(); break;-
215 case 1: *reinterpret_cast< QQmlComponent**>(_v) = _t->delegate(); break;-
216 case 2: *reinterpret_cast< int*>(_v) = _t->count(); break;-
217 default: break;-
218 }-
219 } else if (_c == QMetaObject::WriteProperty) {-
220 QQuickRepeater *_t = static_cast<QQuickRepeater *>(_o);-
221 Q_UNUSED(_t)-
222 void *_v = _a[0];-
223 switch (_id) {-
224 case 0: _t->setModel(*reinterpret_cast< QVariant*>(_v)); break;-
225 case 1: _t->setDelegate(*reinterpret_cast< QQmlComponent**>(_v)); break;-
226 default: break;-
227 }-
228 } else if (_c == QMetaObject::ResetProperty) {-
229 }-
230#endif // QT_NO_PROPERTIES-
231}-
232-
233QT_INIT_METAOBJECT const QMetaObject QQuickRepeater::staticMetaObject = {-
234 { &QQuickItem::staticMetaObject, qt_meta_stringdata_QQuickRepeater.data,-
235 qt_meta_data_QQuickRepeater, qt_static_metacall, nullptr, nullptr}-
236};-
237-
238-
239const QMetaObject *QQuickRepeater::metaObject() const-
240{-
241 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
242}-
243-
244void *QQuickRepeater::qt_metacast(const char *_clname)-
245{-
246 if (!_clname) return nullptr;-
247 if (!strcmp(_clname, qt_meta_stringdata_QQuickRepeater.stringdata0))-
248 return static_cast<void*>(this);-
249 return QQuickItem::qt_metacast(_clname);-
250}-
251-
252int QQuickRepeater::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
253{-
254 _id = QQuickItem::qt_metacall(_c, _id, _a);-
255 if (_id < 0)-
256 return _id;-
257 if (_c == QMetaObject::InvokeMetaMethod) {-
258 if (_id < 9)-
259 qt_static_metacall(this, _c, _id, _a);-
260 _id -= 9;-
261 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
262 if (_id < 9)-
263 qt_static_metacall(this, _c, _id, _a);-
264 _id -= 9;-
265 }-
266#ifndef QT_NO_PROPERTIES-
267 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
268 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
269 qt_static_metacall(this, _c, _id, _a);-
270 _id -= 3;-
271 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
272 _id -= 3;-
273 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
274 _id -= 3;-
275 } else if (_c == QMetaObject::QueryPropertyStored) {-
276 _id -= 3;-
277 } else if (_c == QMetaObject::QueryPropertyEditable) {-
278 _id -= 3;-
279 } else if (_c == QMetaObject::QueryPropertyUser) {-
280 _id -= 3;-
281 }-
282#endif // QT_NO_PROPERTIES-
283 return _id;-
284}-
285-
286// SIGNAL 0-
287void QQuickRepeater::modelChanged()-
288{-
289 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
290}
executed 750 times by 16 tests: end of block
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
750
291-
292// SIGNAL 1-
293void QQuickRepeater::delegateChanged()-
294{-
295 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
296}
executed 1502 times by 16 tests: end of block
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
1502
297-
298// SIGNAL 2-
299void QQuickRepeater::countChanged()-
300{-
301 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
302}
executed 3274 times by 16 tests: end of block
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
3274
303-
304// SIGNAL 3-
305void QQuickRepeater::itemAdded(int _t1, QQuickItem * _t2)-
306{-
307 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
308 QMetaObject::activate(this, &staticMetaObject, 3, _a);-
309}
executed 9258 times by 16 tests: end of block
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
9258
310-
311// SIGNAL 4-
312void QQuickRepeater::itemRemoved(int _t1, QQuickItem * _t2)-
313{-
314 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };-
315 QMetaObject::activate(this, &staticMetaObject, 4, _a);-
316}
executed 9200 times by 16 tests: end of block
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
9200
317QT_WARNING_POP-
318QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0