OpenCoverage

moc_qquickitemgrabresult.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquickitemgrabresult.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qquickitemgrabresult.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/qquickitemgrabresult.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qquickitemgrabresult.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_QQuickItemGrabResult_t {-
24 QByteArrayData data[9];-
25 char stringdata0[71];-
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_QQuickItemGrabResult_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQuickItemGrabResult_t qt_meta_stringdata_QQuickItemGrabResult = {-
33 {-
34QT_MOC_LITERAL(0, 0, 20), // "QQuickItemGrabResult"-
35QT_MOC_LITERAL(1, 21, 5), // "ready"-
36QT_MOC_LITERAL(2, 27, 0), // ""-
37QT_MOC_LITERAL(3, 28, 5), // "setup"-
38QT_MOC_LITERAL(4, 34, 6), // "render"-
39QT_MOC_LITERAL(5, 41, 10), // "saveToFile"-
40QT_MOC_LITERAL(6, 52, 8), // "fileName"-
41QT_MOC_LITERAL(7, 61, 5), // "image"-
42QT_MOC_LITERAL(8, 67, 3) // "url"-
43-
44 },-
45 "QQuickItemGrabResult\0ready\0\0setup\0"-
46 "render\0saveToFile\0fileName\0image\0url"-
47};-
48#undef QT_MOC_LITERAL-
49-
50static const uint qt_meta_data_QQuickItemGrabResult[] = {-
51-
52 // content:-
53 7, // revision-
54 0, // classname-
55 0, 0, // classinfo-
56 5, 14, // methods-
57 2, 48, // properties-
58 0, 0, // enums/sets-
59 0, 0, // constructors-
60 0, // flags-
61 1, // signalCount-
62-
63 // signals: name, argc, parameters, tag, flags-
64 1, 0, 39, 2, 0x06 /* Public */,-
65-
66 // slots: name, argc, parameters, tag, flags-
67 3, 0, 40, 2, 0x08 /* Private */,-
68 4, 0, 41, 2, 0x08 /* Private */,-
69-
70 // methods: name, argc, parameters, tag, flags-
71 5, 1, 42, 2, 0x02 /* Public */,-
72 5, 1, 45, 2, 0x02 /* Public */,-
73-
74 // signals: parameters-
75 QMetaType::Void,-
76-
77 // slots: parameters-
78 QMetaType::Void,-
79 QMetaType::Void,-
80-
81 // methods: parameters-
82 QMetaType::Bool, QMetaType::QString, 6,-
83 QMetaType::Bool, QMetaType::QString, 6,-
84-
85 // properties: name, type, flags-
86 7, QMetaType::QImage, 0x00095401,-
87 8, QMetaType::QUrl, 0x00095401,-
88-
89 0 // eod-
90};-
91-
92void QQuickItemGrabResult::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
93{-
94 if (_c == QMetaObject::InvokeMetaMethod) {-
95 QQuickItemGrabResult *_t = static_cast<QQuickItemGrabResult *>(_o);-
96 Q_UNUSED(_t)-
97 switch (_id) {-
98 case 0: _t->ready(); break;-
99 case 1: _t->setup(); break;-
100 case 2: _t->render(); break;-
101 case 3: { bool _r = _t->saveToFile((*reinterpret_cast< const QString(*)>(_a[1])));-
102 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;-
103 case 4: { bool _r = _t->saveToFile((*reinterpret_cast< const QString(*)>(_a[1])));-
104 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;-
105 default: ;-
106 }-
107 } else if (_c == QMetaObject::IndexOfMethod) {-
108 int *result = reinterpret_cast<int *>(_a[0]);-
109 {-
110 using _t = void (QQuickItemGrabResult::*)();-
111 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickItemGrabResult::ready)) {-
112 *result = 0;-
113 return;-
114 }-
115 }-
116 }-
117#ifndef QT_NO_PROPERTIES-
118 else if (_c == QMetaObject::ReadProperty) {-
119 QQuickItemGrabResult *_t = static_cast<QQuickItemGrabResult *>(_o);-
120 Q_UNUSED(_t)-
121 void *_v = _a[0];-
122 switch (_id) {-
123 case 0: *reinterpret_cast< QImage*>(_v) = _t->image(); break;-
124 case 1: *reinterpret_cast< QUrl*>(_v) = _t->url(); break;-
125 default: break;-
126 }-
127 } else if (_c == QMetaObject::WriteProperty) {-
128 } else if (_c == QMetaObject::ResetProperty) {-
129 }-
130#endif // QT_NO_PROPERTIES-
131}-
132-
133QT_INIT_METAOBJECT const QMetaObject QQuickItemGrabResult::staticMetaObject = {-
134 { &QObject::staticMetaObject, qt_meta_stringdata_QQuickItemGrabResult.data,-
135 qt_meta_data_QQuickItemGrabResult, qt_static_metacall, nullptr, nullptr}-
136};-
137-
138-
139const QMetaObject *QQuickItemGrabResult::metaObject() const-
140{-
141 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
142}-
143-
144void *QQuickItemGrabResult::qt_metacast(const char *_clname)-
145{-
146 if (!_clname) return nullptr;-
147 if (!strcmp(_clname, qt_meta_stringdata_QQuickItemGrabResult.stringdata0))-
148 return static_cast<void*>(this);-
149 return QObject::qt_metacast(_clname);-
150}-
151-
152int QQuickItemGrabResult::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
153{-
154 _id = QObject::qt_metacall(_c, _id, _a);-
155 if (_id < 0)-
156 return _id;-
157 if (_c == QMetaObject::InvokeMetaMethod) {-
158 if (_id < 5)-
159 qt_static_metacall(this, _c, _id, _a);-
160 _id -= 5;-
161 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
162 if (_id < 5)-
163 *reinterpret_cast<int*>(_a[0]) = -1;-
164 _id -= 5;-
165 }-
166#ifndef QT_NO_PROPERTIES-
167 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
168 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
169 qt_static_metacall(this, _c, _id, _a);-
170 _id -= 2;-
171 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
172 _id -= 2;-
173 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
174 _id -= 2;-
175 } else if (_c == QMetaObject::QueryPropertyStored) {-
176 _id -= 2;-
177 } else if (_c == QMetaObject::QueryPropertyEditable) {-
178 _id -= 2;-
179 } else if (_c == QMetaObject::QueryPropertyUser) {-
180 _id -= 2;-
181 }-
182#endif // QT_NO_PROPERTIES-
183 return _id;-
184}-
185-
186// SIGNAL 0-
187void QQuickItemGrabResult::ready()-
188{-
189 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
190}
executed 6 times by 2 tests: end of block
Executed by:
  • tst_qquickitem2
  • tst_qquicktext
6
191QT_WARNING_POP-
192QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0