OpenCoverage

moc_qquickopenglinfo_p.cpp

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

Generated by Squish Coco 4.2.0