OpenCoverage

moc_qqmlglobal_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmlglobal_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qqmlglobal_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 "../qml/qqmlglobal_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qqmlglobal_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_QQmlApplication_t {-
24 QByteArrayData data[17];-
25 char stringdata0[182];-
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_QQmlApplication_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQmlApplication_t qt_meta_stringdata_QQmlApplication = {-
33 {-
34QT_MOC_LITERAL(0, 0, 15), // "QQmlApplication"-
35QT_MOC_LITERAL(1, 16, 11), // "aboutToQuit"-
36QT_MOC_LITERAL(2, 28, 0), // ""-
37QT_MOC_LITERAL(3, 29, 11), // "nameChanged"-
38QT_MOC_LITERAL(4, 41, 14), // "versionChanged"-
39QT_MOC_LITERAL(5, 56, 19), // "organizationChanged"-
40QT_MOC_LITERAL(6, 76, 13), // "domainChanged"-
41QT_MOC_LITERAL(7, 90, 7), // "setName"-
42QT_MOC_LITERAL(8, 98, 3), // "arg"-
43QT_MOC_LITERAL(9, 102, 10), // "setVersion"-
44QT_MOC_LITERAL(10, 113, 15), // "setOrganization"-
45QT_MOC_LITERAL(11, 129, 9), // "setDomain"-
46QT_MOC_LITERAL(12, 139, 9), // "arguments"-
47QT_MOC_LITERAL(13, 149, 4), // "name"-
48QT_MOC_LITERAL(14, 154, 7), // "version"-
49QT_MOC_LITERAL(15, 162, 12), // "organization"-
50QT_MOC_LITERAL(16, 175, 6) // "domain"-
51-
52 },-
53 "QQmlApplication\0aboutToQuit\0\0nameChanged\0"-
54 "versionChanged\0organizationChanged\0"-
55 "domainChanged\0setName\0arg\0setVersion\0"-
56 "setOrganization\0setDomain\0arguments\0"-
57 "name\0version\0organization\0domain"-
58};-
59#undef QT_MOC_LITERAL-
60-
61static const uint qt_meta_data_QQmlApplication[] = {-
62-
63 // content:-
64 7, // revision-
65 0, // classname-
66 0, 0, // classinfo-
67 9, 14, // methods-
68 5, 76, // properties-
69 0, 0, // enums/sets-
70 0, 0, // constructors-
71 0, // flags-
72 5, // signalCount-
73-
74 // signals: name, argc, parameters, tag, flags-
75 1, 0, 59, 2, 0x06 /* Public */,-
76 3, 0, 60, 2, 0x06 /* Public */,-
77 4, 0, 61, 2, 0x06 /* Public */,-
78 5, 0, 62, 2, 0x06 /* Public */,-
79 6, 0, 63, 2, 0x06 /* Public */,-
80-
81 // slots: name, argc, parameters, tag, flags-
82 7, 1, 64, 2, 0x0a /* Public */,-
83 9, 1, 67, 2, 0x0a /* Public */,-
84 10, 1, 70, 2, 0x0a /* Public */,-
85 11, 1, 73, 2, 0x0a /* Public */,-
86-
87 // signals: parameters-
88 QMetaType::Void,-
89 QMetaType::Void,-
90 QMetaType::Void,-
91 QMetaType::Void,-
92 QMetaType::Void,-
93-
94 // slots: parameters-
95 QMetaType::Void, QMetaType::QString, 8,-
96 QMetaType::Void, QMetaType::QString, 8,-
97 QMetaType::Void, QMetaType::QString, 8,-
98 QMetaType::Void, QMetaType::QString, 8,-
99-
100 // properties: name, type, flags-
101 12, QMetaType::QStringList, 0x00095401,-
102 13, QMetaType::QString, 0x00495103,-
103 14, QMetaType::QString, 0x00495103,-
104 15, QMetaType::QString, 0x00495103,-
105 16, QMetaType::QString, 0x00495103,-
106-
107 // properties: notify_signal_id-
108 0,-
109 1,-
110 2,-
111 3,-
112 4,-
113-
114 0 // eod-
115};-
116-
117void QQmlApplication::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
118{-
119 if (_c == QMetaObject::InvokeMetaMethod) {-
120 QQmlApplication *_t = static_cast<QQmlApplication *>(_o);-
121 Q_UNUSED(_t)-
122 switch (_id) {-
123 case 0: _t->aboutToQuit(); break;-
124 case 1: _t->nameChanged(); break;-
125 case 2: _t->versionChanged(); break;-
126 case 3: _t->organizationChanged(); break;-
127 case 4: _t->domainChanged(); break;-
128 case 5: _t->setName((*reinterpret_cast< const QString(*)>(_a[1]))); break;-
129 case 6: _t->setVersion((*reinterpret_cast< const QString(*)>(_a[1]))); break;-
130 case 7: _t->setOrganization((*reinterpret_cast< const QString(*)>(_a[1]))); break;-
131 case 8: _t->setDomain((*reinterpret_cast< const QString(*)>(_a[1]))); break;-
132 default: ;-
133 }-
134 } else if (_c == QMetaObject::IndexOfMethod) {-
135 int *result = reinterpret_cast<int *>(_a[0]);-
136 {-
137 using _t = void (QQmlApplication::*)();-
138 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlApplication::aboutToQuit)) {-
139 *result = 0;-
140 return;-
141 }-
142 }-
143 {-
144 using _t = void (QQmlApplication::*)();-
145 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlApplication::nameChanged)) {-
146 *result = 1;-
147 return;-
148 }-
149 }-
150 {-
151 using _t = void (QQmlApplication::*)();-
152 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlApplication::versionChanged)) {-
153 *result = 2;-
154 return;-
155 }-
156 }-
157 {-
158 using _t = void (QQmlApplication::*)();-
159 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlApplication::organizationChanged)) {-
160 *result = 3;-
161 return;-
162 }-
163 }-
164 {-
165 using _t = void (QQmlApplication::*)();-
166 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlApplication::domainChanged)) {-
167 *result = 4;-
168 return;-
169 }-
170 }-
171 }-
172#ifndef QT_NO_PROPERTIES-
173 else if (_c == QMetaObject::ReadProperty) {-
174 QQmlApplication *_t = static_cast<QQmlApplication *>(_o);-
175 Q_UNUSED(_t)-
176 void *_v = _a[0];-
177 switch (_id) {-
178 case 0: *reinterpret_cast< QStringList*>(_v) = _t->args(); break;-
179 case 1: *reinterpret_cast< QString*>(_v) = _t->name(); break;-
180 case 2: *reinterpret_cast< QString*>(_v) = _t->version(); break;-
181 case 3: *reinterpret_cast< QString*>(_v) = _t->organization(); break;-
182 case 4: *reinterpret_cast< QString*>(_v) = _t->domain(); break;-
183 default: break;-
184 }-
185 } else if (_c == QMetaObject::WriteProperty) {-
186 QQmlApplication *_t = static_cast<QQmlApplication *>(_o);-
187 Q_UNUSED(_t)-
188 void *_v = _a[0];-
189 switch (_id) {-
190 case 1: _t->setName(*reinterpret_cast< QString*>(_v)); break;-
191 case 2: _t->setVersion(*reinterpret_cast< QString*>(_v)); break;-
192 case 3: _t->setOrganization(*reinterpret_cast< QString*>(_v)); break;-
193 case 4: _t->setDomain(*reinterpret_cast< QString*>(_v)); break;-
194 default: break;-
195 }-
196 } else if (_c == QMetaObject::ResetProperty) {-
197 }-
198#endif // QT_NO_PROPERTIES-
199}-
200-
201QT_INIT_METAOBJECT const QMetaObject QQmlApplication::staticMetaObject = {-
202 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlApplication.data,-
203 qt_meta_data_QQmlApplication, qt_static_metacall, nullptr, nullptr}-
204};-
205-
206-
207const QMetaObject *QQmlApplication::metaObject() const-
208{-
209 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
210}-
211-
212void *QQmlApplication::qt_metacast(const char *_clname)-
213{-
214 if (!_clname) return nullptr;-
215 if (!strcmp(_clname, qt_meta_stringdata_QQmlApplication.stringdata0))-
216 return static_cast<void*>(this);-
217 return QObject::qt_metacast(_clname);-
218}-
219-
220int QQmlApplication::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
221{-
222 _id = QObject::qt_metacall(_c, _id, _a);-
223 if (_id < 0)-
224 return _id;-
225 if (_c == QMetaObject::InvokeMetaMethod) {-
226 if (_id < 9)-
227 qt_static_metacall(this, _c, _id, _a);-
228 _id -= 9;-
229 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
230 if (_id < 9)-
231 *reinterpret_cast<int*>(_a[0]) = -1;-
232 _id -= 9;-
233 }-
234#ifndef QT_NO_PROPERTIES-
235 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
236 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
237 qt_static_metacall(this, _c, _id, _a);-
238 _id -= 5;-
239 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
240 _id -= 5;-
241 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
242 _id -= 5;-
243 } else if (_c == QMetaObject::QueryPropertyStored) {-
244 _id -= 5;-
245 } else if (_c == QMetaObject::QueryPropertyEditable) {-
246 _id -= 5;-
247 } else if (_c == QMetaObject::QueryPropertyUser) {-
248 _id -= 5;-
249 }-
250#endif // QT_NO_PROPERTIES-
251 return _id;-
252}-
253-
254// SIGNAL 0-
255void QQmlApplication::aboutToQuit()-
256{-
257 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
258}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qqmlapplicationengine
2
259-
260// SIGNAL 1-
261void QQmlApplication::nameChanged()-
262{-
263 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
264}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_qqmlapplicationengine
  • tst_qquickapplication
8
265-
266// SIGNAL 2-
267void QQmlApplication::versionChanged()-
268{-
269 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
270}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlapplicationengine
4
271-
272// SIGNAL 3-
273void QQmlApplication::organizationChanged()-
274{-
275 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);-
276}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlapplicationengine
4
277-
278// SIGNAL 4-
279void QQmlApplication::domainChanged()-
280{-
281 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);-
282}
executed 4 times by 1 test: end of block
Executed by:
  • tst_qqmlapplicationengine
4
283QT_WARNING_POP-
284QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0