OpenCoverage

moc_qqmllistmodel_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmllistmodel_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qqmllistmodel_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 "../types/qqmllistmodel_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qqmllistmodel_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_QQmlListModel_t {-
24 QByteArrayData data[22];-
25 char stringdata0[167];-
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_QQmlListModel_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQmlListModel_t qt_meta_stringdata_QQmlListModel = {-
33 {-
34QT_MOC_LITERAL(0, 0, 13), // "QQmlListModel"-
35QT_MOC_LITERAL(1, 14, 12), // "countChanged"-
36QT_MOC_LITERAL(2, 27, 0), // ""-
37QT_MOC_LITERAL(3, 28, 5), // "clear"-
38QT_MOC_LITERAL(4, 34, 6), // "remove"-
39QT_MOC_LITERAL(5, 41, 15), // "QQmlV4Function*"-
40QT_MOC_LITERAL(6, 57, 4), // "args"-
41QT_MOC_LITERAL(7, 62, 6), // "append"-
42QT_MOC_LITERAL(8, 69, 6), // "insert"-
43QT_MOC_LITERAL(9, 76, 3), // "get"-
44QT_MOC_LITERAL(10, 80, 12), // "QQmlV4Handle"-
45QT_MOC_LITERAL(11, 93, 5), // "index"-
46QT_MOC_LITERAL(12, 99, 3), // "set"-
47QT_MOC_LITERAL(13, 103, 11), // "setProperty"-
48QT_MOC_LITERAL(14, 115, 8), // "property"-
49QT_MOC_LITERAL(15, 124, 5), // "value"-
50QT_MOC_LITERAL(16, 130, 4), // "move"-
51QT_MOC_LITERAL(17, 135, 4), // "from"-
52QT_MOC_LITERAL(18, 140, 2), // "to"-
53QT_MOC_LITERAL(19, 143, 5), // "count"-
54QT_MOC_LITERAL(20, 149, 4), // "sync"-
55QT_MOC_LITERAL(21, 154, 12) // "dynamicRoles"-
56-
57 },-
58 "QQmlListModel\0countChanged\0\0clear\0"-
59 "remove\0QQmlV4Function*\0args\0append\0"-
60 "insert\0get\0QQmlV4Handle\0index\0set\0"-
61 "setProperty\0property\0value\0move\0from\0"-
62 "to\0count\0sync\0dynamicRoles"-
63};-
64#undef QT_MOC_LITERAL-
65-
66static const uint qt_meta_data_QQmlListModel[] = {-
67-
68 // content:-
69 7, // revision-
70 0, // classname-
71 0, 0, // classinfo-
72 10, 14, // methods-
73 2, 98, // properties-
74 0, 0, // enums/sets-
75 0, 0, // constructors-
76 0, // flags-
77 1, // signalCount-
78-
79 // signals: name, argc, parameters, tag, flags-
80 1, 0, 64, 2, 0x06 /* Public */,-
81-
82 // methods: name, argc, parameters, tag, flags-
83 3, 0, 65, 2, 0x02 /* Public */,-
84 4, 1, 66, 2, 0x02 /* Public */,-
85 7, 1, 69, 2, 0x02 /* Public */,-
86 8, 1, 72, 2, 0x02 /* Public */,-
87 9, 1, 75, 2, 0x02 /* Public */,-
88 12, 2, 78, 2, 0x02 /* Public */,-
89 13, 3, 83, 2, 0x02 /* Public */,-
90 16, 3, 90, 2, 0x02 /* Public */,-
91 20, 0, 97, 2, 0x02 /* Public */,-
92-
93 // signals: parameters-
94 QMetaType::Void,-
95-
96 // methods: parameters-
97 QMetaType::Void,-
98 QMetaType::Void, 0x80000000 | 5, 6,-
99 QMetaType::Void, 0x80000000 | 5, 6,-
100 QMetaType::Void, 0x80000000 | 5, 6,-
101 0x80000000 | 10, QMetaType::Int, 11,-
102 QMetaType::Void, QMetaType::Int, 0x80000000 | 10, 11, 2,-
103 QMetaType::Void, QMetaType::Int, QMetaType::QString, QMetaType::QVariant, 11, 14, 15,-
104 QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 17, 18, 19,-
105 QMetaType::Void,-
106-
107 // properties: name, type, flags-
108 19, QMetaType::Int, 0x00495001,-
109 21, QMetaType::Bool, 0x00095103,-
110-
111 // properties: notify_signal_id-
112 0,-
113 0,-
114-
115 0 // eod-
116};-
117-
118void QQmlListModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
119{-
120 if (_c == QMetaObject::InvokeMetaMethod) {-
121 QQmlListModel *_t = static_cast<QQmlListModel *>(_o);-
122 Q_UNUSED(_t)-
123 switch (_id) {-
124 case 0: _t->countChanged(); break;-
125 case 1: _t->clear(); break;-
126 case 2: _t->remove((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
127 case 3: _t->append((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
128 case 4: _t->insert((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break;-
129 case 5: { QQmlV4Handle _r = _t->get((*reinterpret_cast< int(*)>(_a[1])));-
130 if (_a[0]) *reinterpret_cast< QQmlV4Handle*>(_a[0]) = std::move(_r); } break;-
131 case 6: _t->set((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QQmlV4Handle(*)>(_a[2]))); break;-
132 case 7: _t->setProperty((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QVariant(*)>(_a[3]))); break;-
133 case 8: _t->move((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;-
134 case 9: _t->sync(); break;-
135 default: ;-
136 }-
137 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
138 switch (_id) {-
139 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
140 case 6:-
141 switch (*reinterpret_cast<int*>(_a[1])) {-
142 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
143 case 1:-
144 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlV4Handle >(); break;-
145 }-
146 break;-
147 }-
148 } else if (_c == QMetaObject::IndexOfMethod) {-
149 int *result = reinterpret_cast<int *>(_a[0]);-
150 {-
151 using _t = void (QQmlListModel::*)();-
152 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlListModel::countChanged)) {-
153 *result = 0;-
154 return;-
155 }-
156 }-
157 }-
158#ifndef QT_NO_PROPERTIES-
159 else if (_c == QMetaObject::ReadProperty) {-
160 QQmlListModel *_t = static_cast<QQmlListModel *>(_o);-
161 Q_UNUSED(_t)-
162 void *_v = _a[0];-
163 switch (_id) {-
164 case 0: *reinterpret_cast< int*>(_v) = _t->count(); break;-
165 case 1: *reinterpret_cast< bool*>(_v) = _t->dynamicRoles(); break;-
166 default: break;-
167 }-
168 } else if (_c == QMetaObject::WriteProperty) {-
169 QQmlListModel *_t = static_cast<QQmlListModel *>(_o);-
170 Q_UNUSED(_t)-
171 void *_v = _a[0];-
172 switch (_id) {-
173 case 1: _t->setDynamicRoles(*reinterpret_cast< bool*>(_v)); break;-
174 default: break;-
175 }-
176 } else if (_c == QMetaObject::ResetProperty) {-
177 }-
178#endif // QT_NO_PROPERTIES-
179}-
180-
181QT_INIT_METAOBJECT const QMetaObject QQmlListModel::staticMetaObject = {-
182 { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_QQmlListModel.data,-
183 qt_meta_data_QQmlListModel, qt_static_metacall, nullptr, nullptr}-
184};-
185-
186-
187const QMetaObject *QQmlListModel::metaObject() const-
188{-
189 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
190}-
191-
192void *QQmlListModel::qt_metacast(const char *_clname)-
193{-
194 if (!_clname) return nullptr;-
195 if (!strcmp(_clname, qt_meta_stringdata_QQmlListModel.stringdata0))-
196 return static_cast<void*>(this);-
197 return QAbstractListModel::qt_metacast(_clname);-
198}-
199-
200int QQmlListModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
201{-
202 _id = QAbstractListModel::qt_metacall(_c, _id, _a);-
203 if (_id < 0)-
204 return _id;-
205 if (_c == QMetaObject::InvokeMetaMethod) {-
206 if (_id < 10)-
207 qt_static_metacall(this, _c, _id, _a);-
208 _id -= 10;-
209 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
210 if (_id < 10)-
211 qt_static_metacall(this, _c, _id, _a);-
212 _id -= 10;-
213 }-
214#ifndef QT_NO_PROPERTIES-
215 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
216 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
217 qt_static_metacall(this, _c, _id, _a);-
218 _id -= 2;-
219 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
220 _id -= 2;-
221 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
222 _id -= 2;-
223 } else if (_c == QMetaObject::QueryPropertyStored) {-
224 _id -= 2;-
225 } else if (_c == QMetaObject::QueryPropertyEditable) {-
226 _id -= 2;-
227 } else if (_c == QMetaObject::QueryPropertyUser) {-
228 _id -= 2;-
229 }-
230#endif // QT_NO_PROPERTIES-
231 return _id;-
232}-
233-
234// SIGNAL 0-
235void QQmlListModel::countChanged()-
236{-
237 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
238}
executed 3144 times by 9 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmllistmodel
  • tst_qqmllistmodelworkerscript
  • tst_qqmlxmlhttprequest
  • tst_qquickgridview
  • tst_qquicklistview
  • tst_qquickpathview
  • tst_qquickrepeater
  • tst_qquickvisualdatamodel
3144
239struct qt_meta_stringdata_QQmlListElement_t {-
240 QByteArrayData data[1];-
241 char stringdata0[16];-
242};-
243#define QT_MOC_LITERAL(idx, ofs, len) \-
244 Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \-
245 qptrdiff(offsetof(qt_meta_stringdata_QQmlListElement_t, stringdata0) + ofs \-
246 - idx * sizeof(QByteArrayData)) \-
247 )-
248static const qt_meta_stringdata_QQmlListElement_t qt_meta_stringdata_QQmlListElement = {-
249 {-
250QT_MOC_LITERAL(0, 0, 15) // "QQmlListElement"-
251-
252 },-
253 "QQmlListElement"-
254};-
255#undef QT_MOC_LITERAL-
256-
257static const uint qt_meta_data_QQmlListElement[] = {-
258-
259 // content:-
260 7, // revision-
261 0, // classname-
262 0, 0, // classinfo-
263 0, 0, // methods-
264 0, 0, // properties-
265 0, 0, // enums/sets-
266 0, 0, // constructors-
267 0, // flags-
268 0, // signalCount-
269-
270 0 // eod-
271};-
272-
273void QQmlListElement::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
274{-
275 Q_UNUSED(_o);-
276 Q_UNUSED(_id);-
277 Q_UNUSED(_c);-
278 Q_UNUSED(_a);-
279}-
280-
281QT_INIT_METAOBJECT const QMetaObject QQmlListElement::staticMetaObject = {-
282 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlListElement.data,-
283 qt_meta_data_QQmlListElement, qt_static_metacall, nullptr, nullptr}-
284};-
285-
286-
287const QMetaObject *QQmlListElement::metaObject() const-
288{-
289 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
290}-
291-
292void *QQmlListElement::qt_metacast(const char *_clname)-
293{-
294 if (!_clname) return nullptr;-
295 if (!strcmp(_clname, qt_meta_stringdata_QQmlListElement.stringdata0))-
296 return static_cast<void*>(this);-
297 return QObject::qt_metacast(_clname);-
298}-
299-
300int QQmlListElement::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
301{-
302 _id = QObject::qt_metacall(_c, _id, _a);-
303 return _id;-
304}-
305QT_WARNING_POP-
306QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0