OpenCoverage

moc_qquickwindowmodule_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquickwindowmodule_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_QQuickWindowQmlImpl_t {-
9 QByteArrayData data[12];-
10 char stringdata0[149];-
11};-
12-
13-
14-
15-
16-
17static const qt_meta_stringdata_QQuickWindowQmlImpl_t qt_meta_stringdata_QQuickWindowQmlImpl = {-
18 {-
19{ { { -1 } }, 19, 0, 0, qptrdiff(-
20__builtin_offsetof (-
21qt_meta_stringdata_QQuickWindowQmlImpl_t-
22, -
23stringdata0-
24) -
25+ 0 - 0 * sizeof(QByteArrayData)) },-
26{ { { -1 } }, 14, 0, 0, qptrdiff(-
27__builtin_offsetof (-
28qt_meta_stringdata_QQuickWindowQmlImpl_t-
29, -
30stringdata0-
31) -
32+ 20 - 1 * sizeof(QByteArrayData)) },-
33{ { { -1 } }, 0, 0, 0, qptrdiff(-
34__builtin_offsetof (-
35qt_meta_stringdata_QQuickWindowQmlImpl_t-
36, -
37stringdata0-
38) -
39+ 35 - 2 * sizeof(QByteArrayData)) },-
40{ { { -1 } }, 3, 0, 0, qptrdiff(-
41__builtin_offsetof (-
42qt_meta_stringdata_QQuickWindowQmlImpl_t-
43, -
44stringdata0-
45) -
46+ 36 - 3 * sizeof(QByteArrayData)) },-
47{ { { -1 } }, 17, 0, 0, qptrdiff(-
48__builtin_offsetof (-
49qt_meta_stringdata_QQuickWindowQmlImpl_t-
50, -
51stringdata0-
52) -
53+ 40 - 4 * sizeof(QByteArrayData)) },-
54{ { { -1 } }, 19, 0, 0, qptrdiff(-
55__builtin_offsetof (-
56qt_meta_stringdata_QQuickWindowQmlImpl_t-
57, -
58stringdata0-
59) -
60+ 58 - 5 * sizeof(QByteArrayData)) },-
61{ { { -1 } }, 10, 0, 0, qptrdiff(-
62__builtin_offsetof (-
63qt_meta_stringdata_QQuickWindowQmlImpl_t-
64, -
65stringdata0-
66) -
67+ 78 - 6 * sizeof(QByteArrayData)) },-
68{ { { -1 } }, 13, 0, 0, qptrdiff(-
69__builtin_offsetof (-
70qt_meta_stringdata_QQuickWindowQmlImpl_t-
71, -
72stringdata0-
73) -
74+ 89 - 7 * sizeof(QByteArrayData)) },-
75{ { { -1 } }, 19, 0, 0, qptrdiff(-
76__builtin_offsetof (-
77qt_meta_stringdata_QQuickWindowQmlImpl_t-
78, -
79stringdata0-
80) -
81+ 103 - 8 * sizeof(QByteArrayData)) },-
82{ { { -1 } }, 7, 0, 0, qptrdiff(-
83__builtin_offsetof (-
84qt_meta_stringdata_QQuickWindowQmlImpl_t-
85, -
86stringdata0-
87) -
88+ 123 - 9 * sizeof(QByteArrayData)) },-
89{ { { -1 } }, 10, 0, 0, qptrdiff(-
90__builtin_offsetof (-
91qt_meta_stringdata_QQuickWindowQmlImpl_t-
92, -
93stringdata0-
94) -
95+ 131 - 10 * sizeof(QByteArrayData)) },-
96{ { { -1 } }, 6, 0, 0, qptrdiff(-
97__builtin_offsetof (-
98qt_meta_stringdata_QQuickWindowQmlImpl_t-
99, -
100stringdata0-
101) -
102+ 142 - 11 * sizeof(QByteArrayData)) }-
103-
104 },-
105 "QQuickWindowQmlImpl\0visibleChanged\0\0"-
106 "arg\0visibilityChanged\0QWindow::Visibility\0"-
107 "visibility\0screenChanged\0setWindowVisibility\0"-
108 "visible\0Visibility\0screen"-
109};-
110-
111-
112static const uint qt_meta_data_QQuickWindowQmlImpl[] = {-
113-
114-
115 7,-
116 0,-
117 0, 0,-
118 4, 14,-
119 3, 46,-
120 0, 0,-
121 0, 0,-
122 0,-
123 3,-
124-
125-
126 1, 1, 38, 2, 0x06 ,-
127 4, 1, 41, 2, 0x06 ,-
128 7, 0, 44, 2, 0x86 ,-
129-
130-
131 8, 0, 45, 2, 0x08 ,-
132-
133-
134 0,-
135 0,-
136 2,-
137-
138-
139 0,-
140-
141-
142 QMetaType::Void, QMetaType::Bool, 3,-
143 QMetaType::Void, 0x80000000 | 5, 6,-
144 QMetaType::Void,-
145-
146-
147 QMetaType::Void,-
148-
149-
150 9, QMetaType::Bool, 0x00495103,-
151 6, 0x80000000 | 10, 0x0049510b,-
152 11, QMetaType::QObjectStar, 0x00c95103,-
153-
154-
155 0,-
156 1,-
157 2,-
158-
159-
160 0,-
161 0,-
162 2,-
163-
164 0-
165};-
166-
167void QQuickWindowQmlImpl::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
168{-
169 if (_c == QMetaObject::InvokeMetaMethod) {-
170 QQuickWindowQmlImpl *_t = static_cast<QQuickWindowQmlImpl *>(_o);-
171 (void)_t;-
172 switch (_id) {-
173 case 0: _t->visibleChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;-
174 case 1: _t->visibilityChanged((*reinterpret_cast< QWindow::Visibility(*)>(_a[1]))); break;-
175 case 2: _t->screenChanged(); break;-
176 case 3: _t->setWindowVisibility(); break;-
177 default: ;-
178 }-
179 } else if (_c == QMetaObject::IndexOfMethod) {-
180 int *result = reinterpret_cast<int *>(_a[0]);-
181 {-
182 using _t = void (QQuickWindowQmlImpl::*)(bool );-
183 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickWindowQmlImpl::visibleChanged)) {-
184 *result = 0;-
185 return;-
186 }-
187 }-
188 {-
189 using _t = void (QQuickWindowQmlImpl::*)(QWindow::Visibility );-
190 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickWindowQmlImpl::visibilityChanged)) {-
191 *result = 1;-
192 return;-
193 }-
194 }-
195 {-
196 using _t = void (QQuickWindowQmlImpl::*)();-
197 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickWindowQmlImpl::screenChanged)) {-
198 *result = 2;-
199 return;-
200 }-
201 }-
202 }-
203-
204 else if (_c == QMetaObject::ReadProperty) {-
205 QQuickWindowQmlImpl *_t = static_cast<QQuickWindowQmlImpl *>(_o);-
206 (void)_t;-
207 void *_v = _a[0];-
208 switch (_id) {-
209 case 0: *reinterpret_cast< bool*>(_v) = _t->isVisible(); break;-
210 case 1: *reinterpret_cast< Visibility*>(_v) = _t->visibility(); break;-
211 case 2: *reinterpret_cast< QObject**>(_v) = _t->screen(); break;-
212 default: break;-
213 }-
214 } else if (_c == QMetaObject::WriteProperty) {-
215 QQuickWindowQmlImpl *_t = static_cast<QQuickWindowQmlImpl *>(_o);-
216 (void)_t;-
217 void *_v = _a[0];-
218 switch (_id) {-
219 case 0: _t->setVisible(*reinterpret_cast< bool*>(_v)); break;-
220 case 1: _t->setVisibility(*reinterpret_cast< Visibility*>(_v)); break;-
221 case 2: _t->setScreen(*reinterpret_cast< QObject**>(_v)); break;-
222 default: break;-
223 }-
224 } else if (_c == QMetaObject::ResetProperty) {-
225 }-
226-
227}-
228-
229 const QMetaObject QQuickWindowQmlImpl::staticMetaObject = {-
230 { &QQuickWindow::staticMetaObject, qt_meta_stringdata_QQuickWindowQmlImpl.data,-
231 qt_meta_data_QQuickWindowQmlImpl, qt_static_metacall, nullptr, nullptr}-
232};-
233-
234-
235const QMetaObject *QQuickWindowQmlImpl::metaObject() const-
236{-
237 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
238}-
239-
240void *QQuickWindowQmlImpl::qt_metacast(const char *_clname)-
241{-
242 if (!_clname) return nullptr;-
243 if (!strcmp(_clname, qt_meta_stringdata_QQuickWindowQmlImpl.stringdata0))-
244 return static_cast<void*>(this);-
245 if (!strcmp(_clname, "QQmlParserStatus"))-
246 return static_cast< QQmlParserStatus*>(this);-
247 if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))-
248 return static_cast< QQmlParserStatus*>(this);-
249 return QQuickWindow::qt_metacast(_clname);-
250}-
251-
252int QQuickWindowQmlImpl::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
253{-
254 _id = QQuickWindow::qt_metacall(_c, _id, _a);-
255 if (_id < 0)-
256 return _id;-
257 if (_c == QMetaObject::InvokeMetaMethod) {-
258 if (_id < 4)-
259 qt_static_metacall(this, _c, _id, _a);-
260 _id -= 4;-
261 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
262 if (_id < 4)-
263 *reinterpret_cast<int*>(_a[0]) = -1;-
264 _id -= 4;-
265 }-
266-
267 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
268 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
269 qt_static_metacall(this, _c, _id, _a);-
270 _id -= 3;-
271 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
272 _id -= 3;-
273 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
274 _id -= 3;-
275 } else if (_c == QMetaObject::QueryPropertyStored) {-
276 _id -= 3;-
277 } else if (_c == QMetaObject::QueryPropertyEditable) {-
278 _id -= 3;-
279 } else if (_c == QMetaObject::QueryPropertyUser) {-
280 _id -= 3;-
281 }-
282-
283 return _id;-
284}-
285-
286-
287void QQuickWindowQmlImpl::visibleChanged(bool _t1)-
288{-
289 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
290 QMetaObject::activate(this, &staticMetaObject, 0, _a);-
291}
executed 290 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickshortcut
  • tst_qquicktext
290
292-
293-
294void QQuickWindowQmlImpl::visibilityChanged(QWindow::Visibility _t1)-
295{-
296 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
297 QMetaObject::activate(this, &staticMetaObject, 1, _a);-
298}
executed 290 times by 7 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlcomponent
  • tst_qquickanimations
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickshortcut
  • tst_qquicktext
290
299-
300-
301void QQuickWindowQmlImpl::screenChanged()-
302{-
303 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
304}
never executed: end of block
0
305-
306#pragma GCC diagnostic pop-
307-
308-
Switch to Source codePreprocessed file

Generated by Squish Coco 4.2.0