OpenCoverage

moc_qquickgraphicsinfo_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquickgraphicsinfo_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qquickgraphicsinfo_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/qquickgraphicsinfo_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qquickgraphicsinfo_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_QQuickGraphicsInfo_t {-
24 QByteArrayData data[46];-
25 char stringdata0[707];-
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_QQuickGraphicsInfo_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQuickGraphicsInfo_t qt_meta_stringdata_QQuickGraphicsInfo = {-
33 {-
34QT_MOC_LITERAL(0, 0, 18), // "QQuickGraphicsInfo"-
35QT_MOC_LITERAL(1, 19, 10), // "apiChanged"-
36QT_MOC_LITERAL(2, 30, 0), // ""-
37QT_MOC_LITERAL(3, 31, 17), // "shaderTypeChanged"-
38QT_MOC_LITERAL(4, 49, 28), // "shaderCompilationTypeChanged"-
39QT_MOC_LITERAL(5, 78, 23), // "shaderSourceTypeChanged"-
40QT_MOC_LITERAL(6, 102, 19), // "majorVersionChanged"-
41QT_MOC_LITERAL(7, 122, 19), // "minorVersionChanged"-
42QT_MOC_LITERAL(8, 142, 14), // "profileChanged"-
43QT_MOC_LITERAL(9, 157, 21), // "renderableTypeChanged"-
44QT_MOC_LITERAL(10, 179, 10), // "updateInfo"-
45QT_MOC_LITERAL(11, 190, 9), // "setWindow"-
46QT_MOC_LITERAL(12, 200, 13), // "QQuickWindow*"-
47QT_MOC_LITERAL(13, 214, 6), // "window"-
48QT_MOC_LITERAL(14, 221, 3), // "api"-
49QT_MOC_LITERAL(15, 225, 11), // "GraphicsApi"-
50QT_MOC_LITERAL(16, 237, 10), // "shaderType"-
51QT_MOC_LITERAL(17, 248, 10), // "ShaderType"-
52QT_MOC_LITERAL(18, 259, 21), // "shaderCompilationType"-
53QT_MOC_LITERAL(19, 281, 21), // "ShaderCompilationType"-
54QT_MOC_LITERAL(20, 303, 16), // "shaderSourceType"-
55QT_MOC_LITERAL(21, 320, 16), // "ShaderSourceType"-
56QT_MOC_LITERAL(22, 337, 12), // "majorVersion"-
57QT_MOC_LITERAL(23, 350, 12), // "minorVersion"-
58QT_MOC_LITERAL(24, 363, 7), // "profile"-
59QT_MOC_LITERAL(25, 371, 20), // "OpenGLContextProfile"-
60QT_MOC_LITERAL(26, 392, 14), // "renderableType"-
61QT_MOC_LITERAL(27, 407, 14), // "RenderableType"-
62QT_MOC_LITERAL(28, 422, 7), // "Unknown"-
63QT_MOC_LITERAL(29, 430, 8), // "Software"-
64QT_MOC_LITERAL(30, 439, 6), // "OpenGL"-
65QT_MOC_LITERAL(31, 446, 10), // "Direct3D12"-
66QT_MOC_LITERAL(32, 457, 22), // "UnknownShadingLanguage"-
67QT_MOC_LITERAL(33, 480, 4), // "GLSL"-
68QT_MOC_LITERAL(34, 485, 4), // "HLSL"-
69QT_MOC_LITERAL(35, 490, 18), // "RuntimeCompilation"-
70QT_MOC_LITERAL(36, 509, 18), // "OfflineCompilation"-
71QT_MOC_LITERAL(37, 528, 18), // "ShaderSourceString"-
72QT_MOC_LITERAL(38, 547, 16), // "ShaderSourceFile"-
73QT_MOC_LITERAL(39, 564, 14), // "ShaderByteCode"-
74QT_MOC_LITERAL(40, 579, 15), // "OpenGLNoProfile"-
75QT_MOC_LITERAL(41, 595, 17), // "OpenGLCoreProfile"-
76QT_MOC_LITERAL(42, 613, 26), // "OpenGLCompatibilityProfile"-
77QT_MOC_LITERAL(43, 640, 24), // "SurfaceFormatUnspecified"-
78QT_MOC_LITERAL(44, 665, 19), // "SurfaceFormatOpenGL"-
79QT_MOC_LITERAL(45, 685, 21) // "SurfaceFormatOpenGLES"-
80-
81 },-
82 "QQuickGraphicsInfo\0apiChanged\0\0"-
83 "shaderTypeChanged\0shaderCompilationTypeChanged\0"-
84 "shaderSourceTypeChanged\0majorVersionChanged\0"-
85 "minorVersionChanged\0profileChanged\0"-
86 "renderableTypeChanged\0updateInfo\0"-
87 "setWindow\0QQuickWindow*\0window\0api\0"-
88 "GraphicsApi\0shaderType\0ShaderType\0"-
89 "shaderCompilationType\0ShaderCompilationType\0"-
90 "shaderSourceType\0ShaderSourceType\0"-
91 "majorVersion\0minorVersion\0profile\0"-
92 "OpenGLContextProfile\0renderableType\0"-
93 "RenderableType\0Unknown\0Software\0OpenGL\0"-
94 "Direct3D12\0UnknownShadingLanguage\0"-
95 "GLSL\0HLSL\0RuntimeCompilation\0"-
96 "OfflineCompilation\0ShaderSourceString\0"-
97 "ShaderSourceFile\0ShaderByteCode\0"-
98 "OpenGLNoProfile\0OpenGLCoreProfile\0"-
99 "OpenGLCompatibilityProfile\0"-
100 "SurfaceFormatUnspecified\0SurfaceFormatOpenGL\0"-
101 "SurfaceFormatOpenGLES"-
102};-
103#undef QT_MOC_LITERAL-
104-
105static const uint qt_meta_data_QQuickGraphicsInfo[] = {-
106-
107 // content:-
108 7, // revision-
109 0, // classname-
110 0, 0, // classinfo-
111 10, 14, // methods-
112 8, 76, // properties-
113 6, 108, // enums/sets-
114 0, 0, // constructors-
115 0, // flags-
116 8, // signalCount-
117-
118 // signals: name, argc, parameters, tag, flags-
119 1, 0, 64, 2, 0x06 /* Public */,-
120 3, 0, 65, 2, 0x06 /* Public */,-
121 4, 0, 66, 2, 0x06 /* Public */,-
122 5, 0, 67, 2, 0x06 /* Public */,-
123 6, 0, 68, 2, 0x06 /* Public */,-
124 7, 0, 69, 2, 0x06 /* Public */,-
125 8, 0, 70, 2, 0x06 /* Public */,-
126 9, 0, 71, 2, 0x06 /* Public */,-
127-
128 // slots: name, argc, parameters, tag, flags-
129 10, 0, 72, 2, 0x08 /* Private */,-
130 11, 1, 73, 2, 0x08 /* Private */,-
131-
132 // signals: parameters-
133 QMetaType::Void,-
134 QMetaType::Void,-
135 QMetaType::Void,-
136 QMetaType::Void,-
137 QMetaType::Void,-
138 QMetaType::Void,-
139 QMetaType::Void,-
140 QMetaType::Void,-
141-
142 // slots: parameters-
143 QMetaType::Void,-
144 QMetaType::Void, 0x80000000 | 12, 13,-
145-
146 // properties: name, type, flags-
147 14, 0x80000000 | 15, 0x00495809,-
148 16, 0x80000000 | 17, 0x00495809,-
149 18, 0x80000000 | 19, 0x00495809,-
150 20, 0x80000000 | 21, 0x00495809,-
151 22, QMetaType::Int, 0x00495801,-
152 23, QMetaType::Int, 0x00495801,-
153 24, 0x80000000 | 25, 0x00495809,-
154 26, 0x80000000 | 27, 0x00495809,-
155-
156 // properties: notify_signal_id-
157 0,-
158 1,-
159 2,-
160 3,-
161 4,-
162 5,-
163 6,-
164 7,-
165-
166 // enums: name, flags, count, data-
167 15, 0x0, 4, 132,-
168 17, 0x0, 3, 140,-
169 19, 0x0, 2, 146,-
170 21, 0x0, 3, 150,-
171 25, 0x0, 3, 156,-
172 27, 0x0, 3, 162,-
173-
174 // enum data: key, value-
175 28, uint(QQuickGraphicsInfo::Unknown),-
176 29, uint(QQuickGraphicsInfo::Software),-
177 30, uint(QQuickGraphicsInfo::OpenGL),-
178 31, uint(QQuickGraphicsInfo::Direct3D12),-
179 32, uint(QQuickGraphicsInfo::UnknownShadingLanguage),-
180 33, uint(QQuickGraphicsInfo::GLSL),-
181 34, uint(QQuickGraphicsInfo::HLSL),-
182 35, uint(QQuickGraphicsInfo::RuntimeCompilation),-
183 36, uint(QQuickGraphicsInfo::OfflineCompilation),-
184 37, uint(QQuickGraphicsInfo::ShaderSourceString),-
185 38, uint(QQuickGraphicsInfo::ShaderSourceFile),-
186 39, uint(QQuickGraphicsInfo::ShaderByteCode),-
187 40, uint(QQuickGraphicsInfo::OpenGLNoProfile),-
188 41, uint(QQuickGraphicsInfo::OpenGLCoreProfile),-
189 42, uint(QQuickGraphicsInfo::OpenGLCompatibilityProfile),-
190 43, uint(QQuickGraphicsInfo::SurfaceFormatUnspecified),-
191 44, uint(QQuickGraphicsInfo::SurfaceFormatOpenGL),-
192 45, uint(QQuickGraphicsInfo::SurfaceFormatOpenGLES),-
193-
194 0 // eod-
195};-
196-
197void QQuickGraphicsInfo::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
198{-
199 if (_c == QMetaObject::InvokeMetaMethod) {-
200 QQuickGraphicsInfo *_t = static_cast<QQuickGraphicsInfo *>(_o);-
201 Q_UNUSED(_t)-
202 switch (_id) {-
203 case 0: _t->apiChanged(); break;-
204 case 1: _t->shaderTypeChanged(); break;-
205 case 2: _t->shaderCompilationTypeChanged(); break;-
206 case 3: _t->shaderSourceTypeChanged(); break;-
207 case 4: _t->majorVersionChanged(); break;-
208 case 5: _t->minorVersionChanged(); break;-
209 case 6: _t->profileChanged(); break;-
210 case 7: _t->renderableTypeChanged(); break;-
211 case 8: _t->updateInfo(); break;-
212 case 9: _t->setWindow((*reinterpret_cast< QQuickWindow*(*)>(_a[1]))); break;-
213 default: ;-
214 }-
215 } else if (_c == QMetaObject::IndexOfMethod) {-
216 int *result = reinterpret_cast<int *>(_a[0]);-
217 {-
218 using _t = void (QQuickGraphicsInfo::*)();-
219 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickGraphicsInfo::apiChanged)) {-
220 *result = 0;-
221 return;-
222 }-
223 }-
224 {-
225 using _t = void (QQuickGraphicsInfo::*)();-
226 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickGraphicsInfo::shaderTypeChanged)) {-
227 *result = 1;-
228 return;-
229 }-
230 }-
231 {-
232 using _t = void (QQuickGraphicsInfo::*)();-
233 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickGraphicsInfo::shaderCompilationTypeChanged)) {-
234 *result = 2;-
235 return;-
236 }-
237 }-
238 {-
239 using _t = void (QQuickGraphicsInfo::*)();-
240 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickGraphicsInfo::shaderSourceTypeChanged)) {-
241 *result = 3;-
242 return;-
243 }-
244 }-
245 {-
246 using _t = void (QQuickGraphicsInfo::*)();-
247 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickGraphicsInfo::majorVersionChanged)) {-
248 *result = 4;-
249 return;-
250 }-
251 }-
252 {-
253 using _t = void (QQuickGraphicsInfo::*)();-
254 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickGraphicsInfo::minorVersionChanged)) {-
255 *result = 5;-
256 return;-
257 }-
258 }-
259 {-
260 using _t = void (QQuickGraphicsInfo::*)();-
261 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickGraphicsInfo::profileChanged)) {-
262 *result = 6;-
263 return;-
264 }-
265 }-
266 {-
267 using _t = void (QQuickGraphicsInfo::*)();-
268 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickGraphicsInfo::renderableTypeChanged)) {-
269 *result = 7;-
270 return;-
271 }-
272 }-
273 }-
274#ifndef QT_NO_PROPERTIES-
275 else if (_c == QMetaObject::ReadProperty) {-
276 QQuickGraphicsInfo *_t = static_cast<QQuickGraphicsInfo *>(_o);-
277 Q_UNUSED(_t)-
278 void *_v = _a[0];-
279 switch (_id) {-
280 case 0: *reinterpret_cast< GraphicsApi*>(_v) = _t->api(); break;-
281 case 1: *reinterpret_cast< ShaderType*>(_v) = _t->shaderType(); break;-
282 case 2: *reinterpret_cast< ShaderCompilationType*>(_v) = _t->shaderCompilationType(); break;-
283 case 3: *reinterpret_cast< ShaderSourceType*>(_v) = _t->shaderSourceType(); break;-
284 case 4: *reinterpret_cast< int*>(_v) = _t->majorVersion(); break;-
285 case 5: *reinterpret_cast< int*>(_v) = _t->minorVersion(); break;-
286 case 6: *reinterpret_cast< OpenGLContextProfile*>(_v) = _t->profile(); break;-
287 case 7: *reinterpret_cast< RenderableType*>(_v) = _t->renderableType(); break;-
288 default: break;-
289 }-
290 } else if (_c == QMetaObject::WriteProperty) {-
291 } else if (_c == QMetaObject::ResetProperty) {-
292 }-
293#endif // QT_NO_PROPERTIES-
294}-
295-
296QT_INIT_METAOBJECT const QMetaObject QQuickGraphicsInfo::staticMetaObject = {-
297 { &QObject::staticMetaObject, qt_meta_stringdata_QQuickGraphicsInfo.data,-
298 qt_meta_data_QQuickGraphicsInfo, qt_static_metacall, nullptr, nullptr}-
299};-
300-
301-
302const QMetaObject *QQuickGraphicsInfo::metaObject() const-
303{-
304 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
305}-
306-
307void *QQuickGraphicsInfo::qt_metacast(const char *_clname)-
308{-
309 if (!_clname) return nullptr;-
310 if (!strcmp(_clname, qt_meta_stringdata_QQuickGraphicsInfo.stringdata0))-
311 return static_cast<void*>(this);-
312 return QObject::qt_metacast(_clname);-
313}-
314-
315int QQuickGraphicsInfo::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
316{-
317 _id = QObject::qt_metacall(_c, _id, _a);-
318 if (_id < 0)-
319 return _id;-
320 if (_c == QMetaObject::InvokeMetaMethod) {-
321 if (_id < 10)-
322 qt_static_metacall(this, _c, _id, _a);-
323 _id -= 10;-
324 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
325 if (_id < 10)-
326 *reinterpret_cast<int*>(_a[0]) = -1;-
327 _id -= 10;-
328 }-
329#ifndef QT_NO_PROPERTIES-
330 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
331 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
332 qt_static_metacall(this, _c, _id, _a);-
333 _id -= 8;-
334 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
335 _id -= 8;-
336 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
337 _id -= 8;-
338 } else if (_c == QMetaObject::QueryPropertyStored) {-
339 _id -= 8;-
340 } else if (_c == QMetaObject::QueryPropertyEditable) {-
341 _id -= 8;-
342 } else if (_c == QMetaObject::QueryPropertyUser) {-
343 _id -= 8;-
344 }-
345#endif // QT_NO_PROPERTIES-
346 return _id;-
347}-
348-
349// SIGNAL 0-
350void QQuickGraphicsInfo::apiChanged()-
351{-
352 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
353}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickgraphicsinfo
2
354-
355// SIGNAL 1-
356void QQuickGraphicsInfo::shaderTypeChanged()-
357{-
358 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
359}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickgraphicsinfo
2
360-
361// SIGNAL 2-
362void QQuickGraphicsInfo::shaderCompilationTypeChanged()-
363{-
364 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
365}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickgraphicsinfo
2
366-
367// SIGNAL 3-
368void QQuickGraphicsInfo::shaderSourceTypeChanged()-
369{-
370 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);-
371}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickgraphicsinfo
2
372-
373// SIGNAL 4-
374void QQuickGraphicsInfo::majorVersionChanged()-
375{-
376 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);-
377}
never executed: end of block
0
378-
379// SIGNAL 5-
380void QQuickGraphicsInfo::minorVersionChanged()-
381{-
382 QMetaObject::activate(this, &staticMetaObject, 5, nullptr);-
383}
never executed: end of block
0
384-
385// SIGNAL 6-
386void QQuickGraphicsInfo::profileChanged()-
387{-
388 QMetaObject::activate(this, &staticMetaObject, 6, nullptr);-
389}
never executed: end of block
0
390-
391// SIGNAL 7-
392void QQuickGraphicsInfo::renderableTypeChanged()-
393{-
394 QMetaObject::activate(this, &staticMetaObject, 7, nullptr);-
395}
never executed: end of block
0
396QT_WARNING_POP-
397QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0