OpenCoverage

moc_qquickwidget.cpp

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

Generated by Squish Coco 4.2.0