OpenCoverage

moc_qquickwindowmodule_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquickwindowmodule_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qquickwindowmodule_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/qquickwindowmodule_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qquickwindowmodule_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_QQuickWindowQmlImpl_t {-
24 QByteArrayData data[12];-
25 char stringdata0[149];-
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_QQuickWindowQmlImpl_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQuickWindowQmlImpl_t qt_meta_stringdata_QQuickWindowQmlImpl = {-
33 {-
34QT_MOC_LITERAL(0, 0, 19), // "QQuickWindowQmlImpl"-
35QT_MOC_LITERAL(1, 20, 14), // "visibleChanged"-
36QT_MOC_LITERAL(2, 35, 0), // ""-
37QT_MOC_LITERAL(3, 36, 3), // "arg"-
38QT_MOC_LITERAL(4, 40, 17), // "visibilityChanged"-
39QT_MOC_LITERAL(5, 58, 19), // "QWindow::Visibility"-
40QT_MOC_LITERAL(6, 78, 10), // "visibility"-
41QT_MOC_LITERAL(7, 89, 13), // "screenChanged"-
42QT_MOC_LITERAL(8, 103, 19), // "setWindowVisibility"-
43QT_MOC_LITERAL(9, 123, 7), // "visible"-
44QT_MOC_LITERAL(10, 131, 10), // "Visibility"-
45QT_MOC_LITERAL(11, 142, 6) // "screen"-
46-
47 },-
48 "QQuickWindowQmlImpl\0visibleChanged\0\0"-
49 "arg\0visibilityChanged\0QWindow::Visibility\0"-
50 "visibility\0screenChanged\0setWindowVisibility\0"-
51 "visible\0Visibility\0screen"-
52};-
53#undef QT_MOC_LITERAL-
54-
55static const uint qt_meta_data_QQuickWindowQmlImpl[] = {-
56-
57 // content:-
58 7, // revision-
59 0, // classname-
60 0, 0, // classinfo-
61 4, 14, // methods-
62 3, 46, // properties-
63 0, 0, // enums/sets-
64 0, 0, // constructors-
65 0, // flags-
66 3, // signalCount-
67-
68 // signals: name, argc, parameters, tag, flags-
69 1, 1, 38, 2, 0x06 /* Public */,-
70 4, 1, 41, 2, 0x06 /* Public */,-
71 7, 0, 44, 2, 0x86 /* Public | MethodRevisioned */,-
72-
73 // slots: name, argc, parameters, tag, flags-
74 8, 0, 45, 2, 0x08 /* Private */,-
75-
76 // signals: revision-
77 0,-
78 0,-
79 2,-
80-
81 // slots: revision-
82 0,-
83-
84 // signals: parameters-
85 QMetaType::Void, QMetaType::Bool, 3,-
86 QMetaType::Void, 0x80000000 | 5, 6,-
87 QMetaType::Void,-
88-
89 // slots: parameters-
90 QMetaType::Void,-
91-
92 // properties: name, type, flags-
93 9, QMetaType::Bool, 0x00495103,-
94 6, 0x80000000 | 10, 0x0049510b,-
95 11, QMetaType::QObjectStar, 0x00c95103,-
96-
97 // properties: notify_signal_id-
98 0,-
99 1,-
100 2,-
101-
102 // properties: revision-
103 0,-
104 0,-
105 2,-
106-
107 0 // eod-
108};-
109-
110void QQuickWindowQmlImpl::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
111{-
112 if (_c == QMetaObject::InvokeMetaMethod) {-
113 QQuickWindowQmlImpl *_t = static_cast<QQuickWindowQmlImpl *>(_o);-
114 Q_UNUSED(_t)-
115 switch (_id) {-
116 case 0: _t->visibleChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;-
117 case 1: _t->visibilityChanged((*reinterpret_cast< QWindow::Visibility(*)>(_a[1]))); break;-
118 case 2: _t->screenChanged(); break;-
119 case 3: _t->setWindowVisibility(); break;-
120 default: ;-
121 }-
122 } else if (_c == QMetaObject::IndexOfMethod) {-
123 int *result = reinterpret_cast<int *>(_a[0]);-
124 {-
125 using _t = void (QQuickWindowQmlImpl::*)(bool );-
126 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickWindowQmlImpl::visibleChanged)) {-
127 *result = 0;-
128 return;-
129 }-
130 }-
131 {-
132 using _t = void (QQuickWindowQmlImpl::*)(QWindow::Visibility );-
133 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickWindowQmlImpl::visibilityChanged)) {-
134 *result = 1;-
135 return;-
136 }-
137 }-
138 {-
139 using _t = void (QQuickWindowQmlImpl::*)();-
140 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickWindowQmlImpl::screenChanged)) {-
141 *result = 2;-
142 return;-
143 }-
144 }-
145 }-
146#ifndef QT_NO_PROPERTIES-
147 else if (_c == QMetaObject::ReadProperty) {-
148 QQuickWindowQmlImpl *_t = static_cast<QQuickWindowQmlImpl *>(_o);-
149 Q_UNUSED(_t)-
150 void *_v = _a[0];-
151 switch (_id) {-
152 case 0: *reinterpret_cast< bool*>(_v) = _t->isVisible(); break;-
153 case 1: *reinterpret_cast< Visibility*>(_v) = _t->visibility(); break;-
154 case 2: *reinterpret_cast< QObject**>(_v) = _t->screen(); break;-
155 default: break;-
156 }-
157 } else if (_c == QMetaObject::WriteProperty) {-
158 QQuickWindowQmlImpl *_t = static_cast<QQuickWindowQmlImpl *>(_o);-
159 Q_UNUSED(_t)-
160 void *_v = _a[0];-
161 switch (_id) {-
162 case 0: _t->setVisible(*reinterpret_cast< bool*>(_v)); break;-
163 case 1: _t->setVisibility(*reinterpret_cast< Visibility*>(_v)); break;-
164 case 2: _t->setScreen(*reinterpret_cast< QObject**>(_v)); break;-
165 default: break;-
166 }-
167 } else if (_c == QMetaObject::ResetProperty) {-
168 }-
169#endif // QT_NO_PROPERTIES-
170}-
171-
172QT_INIT_METAOBJECT const QMetaObject QQuickWindowQmlImpl::staticMetaObject = {-
173 { &QQuickWindow::staticMetaObject, qt_meta_stringdata_QQuickWindowQmlImpl.data,-
174 qt_meta_data_QQuickWindowQmlImpl, qt_static_metacall, nullptr, nullptr}-
175};-
176-
177-
178const QMetaObject *QQuickWindowQmlImpl::metaObject() const-
179{-
180 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
181}-
182-
183void *QQuickWindowQmlImpl::qt_metacast(const char *_clname)-
184{-
185 if (!_clname) return nullptr;-
186 if (!strcmp(_clname, qt_meta_stringdata_QQuickWindowQmlImpl.stringdata0))-
187 return static_cast<void*>(this);-
188 if (!strcmp(_clname, "QQmlParserStatus"))-
189 return static_cast< QQmlParserStatus*>(this);-
190 if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))-
191 return static_cast< QQmlParserStatus*>(this);-
192 return QQuickWindow::qt_metacast(_clname);-
193}-
194-
195int QQuickWindowQmlImpl::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
196{-
197 _id = QQuickWindow::qt_metacall(_c, _id, _a);-
198 if (_id < 0)-
199 return _id;-
200 if (_c == QMetaObject::InvokeMetaMethod) {-
201 if (_id < 4)-
202 qt_static_metacall(this, _c, _id, _a);-
203 _id -= 4;-
204 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
205 if (_id < 4)-
206 *reinterpret_cast<int*>(_a[0]) = -1;-
207 _id -= 4;-
208 }-
209#ifndef QT_NO_PROPERTIES-
210 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
211 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
212 qt_static_metacall(this, _c, _id, _a);-
213 _id -= 3;-
214 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
215 _id -= 3;-
216 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
217 _id -= 3;-
218 } else if (_c == QMetaObject::QueryPropertyStored) {-
219 _id -= 3;-
220 } else if (_c == QMetaObject::QueryPropertyEditable) {-
221 _id -= 3;-
222 } else if (_c == QMetaObject::QueryPropertyUser) {-
223 _id -= 3;-
224 }-
225#endif // QT_NO_PROPERTIES-
226 return _id;-
227}-
228-
229// SIGNAL 0-
230void QQuickWindowQmlImpl::visibleChanged(bool _t1)-
231{-
232 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
233 QMetaObject::activate(this, &staticMetaObject, 0, _a);-
234}
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
235-
236// SIGNAL 1-
237void QQuickWindowQmlImpl::visibilityChanged(QWindow::Visibility _t1)-
238{-
239 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
240 QMetaObject::activate(this, &staticMetaObject, 1, _a);-
241}
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
242-
243// SIGNAL 2-
244void QQuickWindowQmlImpl::screenChanged()-
245{-
246 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
247}
never executed: end of block
0
248QT_WARNING_POP-
249QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0