OpenCoverage

moc_qquicksystempalette_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquicksystempalette_p.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3#pragma GCC diagnostic push-
4-
5-
6#pragma GCC diagnostic ignored "-Wdeprecated-declarations"-
7-
8struct qt_meta_stringdata_QQuickSystemPalette_t {-
9 QByteArrayData data[23];-
10 char stringdata0[232];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQuickSystemPalette_t qt_meta_stringdata_QQuickSystemPalette = {-
18 {-
19{ { { -1 } }, 19, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQuickSystemPalette_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 14, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQuickSystemPalette_t-
29, -
30stringdata0-
31) -
32+ 20 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQuickSystemPalette_t-
36, -
37stringdata0-
38) -
39+ 35 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 10, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQuickSystemPalette_t-
43, -
44stringdata0-
45) -
46+ 36 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 31, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQuickSystemPalette_t-
50, -
51stringdata0-
52) -
53+ 47 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 6, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QQuickSystemPalette_t-
57, -
58stringdata0-
59) -
60+ 79 - 5 * sizeof(QByteArrayData)) },-
61{ { { -1 } }, 10, 0, 0, qptrdiff(-
62__builtin_offsetof (-
63qt_meta_stringdata_QQuickSystemPalette_t-
64, -
65stringdata0-
66) -
67+ 86 - 6 * sizeof(QByteArrayData)) },-
68{ { { -1 } }, 4, 0, 0, qptrdiff(-
69__builtin_offsetof (-
70qt_meta_stringdata_QQuickSystemPalette_t-
71, -
72stringdata0-
73) -
74+ 97 - 7 * sizeof(QByteArrayData)) },-
75{ { { -1 } }, 4, 0, 0, qptrdiff(-
76__builtin_offsetof (-
77qt_meta_stringdata_QQuickSystemPalette_t-
78, -
79stringdata0-
80) -
81+ 102 - 8 * sizeof(QByteArrayData)) },-
82{ { { -1 } }, 13, 0, 0, qptrdiff(-
83__builtin_offsetof (-
84qt_meta_stringdata_QQuickSystemPalette_t-
85, -
86stringdata0-
87) -
88+ 107 - 9 * sizeof(QByteArrayData)) },-
89{ { { -1 } }, 6, 0, 0, qptrdiff(-
90__builtin_offsetof (-
91qt_meta_stringdata_QQuickSystemPalette_t-
92, -
93stringdata0-
94) -
95+ 121 - 10 * sizeof(QByteArrayData)) },-
96{ { { -1 } }, 10, 0, 0, qptrdiff(-
97__builtin_offsetof (-
98qt_meta_stringdata_QQuickSystemPalette_t-
99, -
100stringdata0-
101) -
102+ 128 - 11 * sizeof(QByteArrayData)) },-
103{ { { -1 } }, 5, 0, 0, qptrdiff(-
104__builtin_offsetof (-
105qt_meta_stringdata_QQuickSystemPalette_t-
106, -
107stringdata0-
108) -
109+ 139 - 12 * sizeof(QByteArrayData)) },-
110{ { { -1 } }, 8, 0, 0, qptrdiff(-
111__builtin_offsetof (-
112qt_meta_stringdata_QQuickSystemPalette_t-
113, -
114stringdata0-
115) -
116+ 145 - 13 * sizeof(QByteArrayData)) },-
117{ { { -1 } }, 4, 0, 0, qptrdiff(-
118__builtin_offsetof (-
119qt_meta_stringdata_QQuickSystemPalette_t-
120, -
121stringdata0-
122) -
123+ 154 - 14 * sizeof(QByteArrayData)) },-
124{ { { -1 } }, 3, 0, 0, qptrdiff(-
125__builtin_offsetof (-
126qt_meta_stringdata_QQuickSystemPalette_t-
127, -
128stringdata0-
129) -
130+ 159 - 15 * sizeof(QByteArrayData)) },-
131{ { { -1 } }, 6, 0, 0, qptrdiff(-
132__builtin_offsetof (-
133qt_meta_stringdata_QQuickSystemPalette_t-
134, -
135stringdata0-
136) -
137+ 163 - 16 * sizeof(QByteArrayData)) },-
138{ { { -1 } }, 9, 0, 0, qptrdiff(-
139__builtin_offsetof (-
140qt_meta_stringdata_QQuickSystemPalette_t-
141, -
142stringdata0-
143) -
144+ 170 - 17 * sizeof(QByteArrayData)) },-
145{ { { -1 } }, 15, 0, 0, qptrdiff(-
146__builtin_offsetof (-
147qt_meta_stringdata_QQuickSystemPalette_t-
148, -
149stringdata0-
150) -
151+ 180 - 18 * sizeof(QByteArrayData)) },-
152{ { { -1 } }, 10, 0, 0, qptrdiff(-
153__builtin_offsetof (-
154qt_meta_stringdata_QQuickSystemPalette_t-
155, -
156stringdata0-
157) -
158+ 196 - 19 * sizeof(QByteArrayData)) },-
159{ { { -1 } }, 6, 0, 0, qptrdiff(-
160__builtin_offsetof (-
161qt_meta_stringdata_QQuickSystemPalette_t-
162, -
163stringdata0-
164) -
165+ 207 - 20 * sizeof(QByteArrayData)) },-
166{ { { -1 } }, 8, 0, 0, qptrdiff(-
167__builtin_offsetof (-
168qt_meta_stringdata_QQuickSystemPalette_t-
169, -
170stringdata0-
171) -
172+ 214 - 21 * sizeof(QByteArrayData)) },-
173{ { { -1 } }, 8, 0, 0, qptrdiff(-
174__builtin_offsetof (-
175qt_meta_stringdata_QQuickSystemPalette_t-
176, -
177stringdata0-
178) -
179+ 223 - 22 * sizeof(QByteArrayData)) }-
180-
181 },-
182 "QQuickSystemPalette\0paletteChanged\0\0"-
183 "colorGroup\0QQuickSystemPalette::ColorGroup\0"-
184 "window\0windowText\0base\0text\0alternateBase\0"-
185 "button\0buttonText\0light\0midlight\0dark\0"-
186 "mid\0shadow\0highlight\0highlightedText\0"-
187 "ColorGroup\0Active\0Inactive\0Disabled"-
188};-
189-
190-
191static const uint qt_meta_data_QQuickSystemPalette[] = {-
192-
193-
194 7,-
195 0,-
196 0, 0,-
197 1, 14,-
198 15, 20,-
199 1, 80,-
200 0, 0,-
201 0,-
202 1,-
203-
204-
205 1, 0, 19, 2, 0x06 ,-
206-
207-
208 QMetaType::Void,-
209-
210-
211 3, 0x80000000 | 4, 0x0049510b,-
212 5, QMetaType::QColor, 0x00495001,-
213 6, QMetaType::QColor, 0x00495001,-
214 7, QMetaType::QColor, 0x00495001,-
215 8, QMetaType::QColor, 0x00495001,-
216 9, QMetaType::QColor, 0x00495001,-
217 10, QMetaType::QColor, 0x00495001,-
218 11, QMetaType::QColor, 0x00495001,-
219 12, QMetaType::QColor, 0x00495001,-
220 13, QMetaType::QColor, 0x00495001,-
221 14, QMetaType::QColor, 0x00495001,-
222 15, QMetaType::QColor, 0x00495001,-
223 16, QMetaType::QColor, 0x00495001,-
224 17, QMetaType::QColor, 0x00495001,-
225 18, QMetaType::QColor, 0x00495001,-
226-
227-
228 0,-
229 0,-
230 0,-
231 0,-
232 0,-
233 0,-
234 0,-
235 0,-
236 0,-
237 0,-
238 0,-
239 0,-
240 0,-
241 0,-
242 0,-
243-
244-
245 19, 0x0, 3, 84,-
246-
247-
248 20, uint(QQuickSystemPalette::Active),-
249 21, uint(QQuickSystemPalette::Inactive),-
250 22, uint(QQuickSystemPalette::Disabled),-
251-
252 0-
253};-
254-
255void QQuickSystemPalette::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
256{-
257 if (_c == QMetaObject::InvokeMetaMethod) {-
258 QQuickSystemPalette *_t = static_cast<QQuickSystemPalette *>(_o);-
259 (void)_t;-
260 switch (_id) {-
261 case 0: _t->paletteChanged(); break;-
262 default: ;-
263 }-
264 } else if (_c == QMetaObject::IndexOfMethod) {-
265 int *result = reinterpret_cast<int *>(_a[0]);-
266 {-
267 using _t = void (QQuickSystemPalette::*)();-
268 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickSystemPalette::paletteChanged)) {-
269 *result = 0;-
270 return;-
271 }-
272 }-
273 }-
274-
275 else if (_c == QMetaObject::ReadProperty) {-
276 QQuickSystemPalette *_t = static_cast<QQuickSystemPalette *>(_o);-
277 (void)_t;-
278 void *_v = _a[0];-
279 switch (_id) {-
280 case 0: *reinterpret_cast< QQuickSystemPalette::ColorGroup*>(_v) = _t->colorGroup(); break;-
281 case 1: *reinterpret_cast< QColor*>(_v) = _t->window(); break;-
282 case 2: *reinterpret_cast< QColor*>(_v) = _t->windowText(); break;-
283 case 3: *reinterpret_cast< QColor*>(_v) = _t->base(); break;-
284 case 4: *reinterpret_cast< QColor*>(_v) = _t->text(); break;-
285 case 5: *reinterpret_cast< QColor*>(_v) = _t->alternateBase(); break;-
286 case 6: *reinterpret_cast< QColor*>(_v) = _t->button(); break;-
287 case 7: *reinterpret_cast< QColor*>(_v) = _t->buttonText(); break;-
288 case 8: *reinterpret_cast< QColor*>(_v) = _t->light(); break;-
289 case 9: *reinterpret_cast< QColor*>(_v) = _t->midlight(); break;-
290 case 10: *reinterpret_cast< QColor*>(_v) = _t->dark(); break;-
291 case 11: *reinterpret_cast< QColor*>(_v) = _t->mid(); break;-
292 case 12: *reinterpret_cast< QColor*>(_v) = _t->shadow(); break;-
293 case 13: *reinterpret_cast< QColor*>(_v) = _t->highlight(); break;-
294 case 14: *reinterpret_cast< QColor*>(_v) = _t->highlightedText(); break;-
295 default: break;-
296 }-
297 } else if (_c == QMetaObject::WriteProperty) {-
298 QQuickSystemPalette *_t = static_cast<QQuickSystemPalette *>(_o);-
299 (void)_t;-
300 void *_v = _a[0];-
301 switch (_id) {-
302 case 0: _t->setColorGroup(*reinterpret_cast< QQuickSystemPalette::ColorGroup*>(_v)); break;-
303 default: break;-
304 }-
305 } else if (_c == QMetaObject::ResetProperty) {-
306 }-
307-
308 (void)_a;;-
309}-
310-
311 const QMetaObject QQuickSystemPalette::staticMetaObject = {-
312 { &QObject::staticMetaObject, qt_meta_stringdata_QQuickSystemPalette.data,-
313 qt_meta_data_QQuickSystemPalette, qt_static_metacall, nullptr, nullptr}-
314};-
315-
316-
317const QMetaObject *QQuickSystemPalette::metaObject() const-
318{-
319 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
320}-
321-
322void *QQuickSystemPalette::qt_metacast(const char *_clname)-
323{-
324 if (!_clname) return nullptr;-
325 if (!strcmp(_clname, qt_meta_stringdata_QQuickSystemPalette.stringdata0))-
326 return static_cast<void*>(this);-
327 return QObject::qt_metacast(_clname);-
328}-
329-
330int QQuickSystemPalette::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
331{-
332 _id = QObject::qt_metacall(_c, _id, _a);-
333 if (_id < 0)-
334 return _id;-
335 if (_c == QMetaObject::InvokeMetaMethod) {-
336 if (_id < 1)-
337 qt_static_metacall(this, _c, _id, _a);-
338 _id -= 1;-
339 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
340 if (_id < 1)-
341 *reinterpret_cast<int*>(_a[0]) = -1;-
342 _id -= 1;-
343 }-
344-
345 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
346 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
347 qt_static_metacall(this, _c, _id, _a);-
348 _id -= 15;-
349 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
350 _id -= 15;-
351 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
352 _id -= 15;-
353 } else if (_c == QMetaObject::QueryPropertyStored) {-
354 _id -= 15;-
355 } else if (_c == QMetaObject::QueryPropertyEditable) {-
356 _id -= 15;-
357 } else if (_c == QMetaObject::QueryPropertyUser) {-
358 _id -= 15;-
359 }-
360-
361 return _id;-
362}-
363-
364-
365void QQuickSystemPalette::paletteChanged()-
366{-
367 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
368}
executed 8 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquicksystempalette
8
369-
370#pragma GCC diagnostic pop-
371-
372-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0