OpenCoverage

moc_qquickgravity_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/.moc/moc_qquickgravity_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qquickgravity_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 "../qquickgravity_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qquickgravity_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_QQuickGravityAffector_t {-
24 QByteArrayData data[11];-
25 char stringdata0[124];-
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_QQuickGravityAffector_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQuickGravityAffector_t qt_meta_stringdata_QQuickGravityAffector = {-
33 {-
34QT_MOC_LITERAL(0, 0, 21), // "QQuickGravityAffector"-
35QT_MOC_LITERAL(1, 22, 16), // "magnitudeChanged"-
36QT_MOC_LITERAL(2, 39, 0), // ""-
37QT_MOC_LITERAL(3, 40, 3), // "arg"-
38QT_MOC_LITERAL(4, 44, 12), // "angleChanged"-
39QT_MOC_LITERAL(5, 57, 12), // "setMagnitude"-
40QT_MOC_LITERAL(6, 70, 15), // "setAcceleration"-
41QT_MOC_LITERAL(7, 86, 8), // "setAngle"-
42QT_MOC_LITERAL(8, 95, 9), // "magnitude"-
43QT_MOC_LITERAL(9, 105, 12), // "acceleration"-
44QT_MOC_LITERAL(10, 118, 5) // "angle"-
45-
46 },-
47 "QQuickGravityAffector\0magnitudeChanged\0"-
48 "\0arg\0angleChanged\0setMagnitude\0"-
49 "setAcceleration\0setAngle\0magnitude\0"-
50 "acceleration\0angle"-
51};-
52#undef QT_MOC_LITERAL-
53-
54static const uint qt_meta_data_QQuickGravityAffector[] = {-
55-
56 // content:-
57 7, // revision-
58 0, // classname-
59 0, 0, // classinfo-
60 5, 14, // methods-
61 3, 54, // properties-
62 0, 0, // enums/sets-
63 0, 0, // constructors-
64 0, // flags-
65 2, // signalCount-
66-
67 // signals: name, argc, parameters, tag, flags-
68 1, 1, 39, 2, 0x06 /* Public */,-
69 4, 1, 42, 2, 0x06 /* Public */,-
70-
71 // slots: name, argc, parameters, tag, flags-
72 5, 1, 45, 2, 0x0a /* Public */,-
73 6, 1, 48, 2, 0x0a /* Public */,-
74 7, 1, 51, 2, 0x0a /* Public */,-
75-
76 // signals: parameters-
77 QMetaType::Void, QMetaType::QReal, 3,-
78 QMetaType::Void, QMetaType::QReal, 3,-
79-
80 // slots: parameters-
81 QMetaType::Void, QMetaType::QReal, 3,-
82 QMetaType::Void, QMetaType::QReal, 3,-
83 QMetaType::Void, QMetaType::QReal, 3,-
84-
85 // properties: name, type, flags-
86 8, QMetaType::QReal, 0x00495103,-
87 9, QMetaType::QReal, 0x00495103,-
88 10, QMetaType::QReal, 0x00495103,-
89-
90 // properties: notify_signal_id-
91 0,-
92 0,-
93 1,-
94-
95 0 // eod-
96};-
97-
98void QQuickGravityAffector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
99{-
100 if (_c == QMetaObject::InvokeMetaMethod) {-
101 QQuickGravityAffector *_t = static_cast<QQuickGravityAffector *>(_o);-
102 Q_UNUSED(_t)-
103 switch (_id) {-
104 case 0: _t->magnitudeChanged((*reinterpret_cast< qreal(*)>(_a[1]))); break;-
105 case 1: _t->angleChanged((*reinterpret_cast< qreal(*)>(_a[1]))); break;-
106 case 2: _t->setMagnitude((*reinterpret_cast< qreal(*)>(_a[1]))); break;-
107 case 3: _t->setAcceleration((*reinterpret_cast< qreal(*)>(_a[1]))); break;-
108 case 4: _t->setAngle((*reinterpret_cast< qreal(*)>(_a[1]))); break;-
109 default: ;-
110 }-
111 } else if (_c == QMetaObject::IndexOfMethod) {-
112 int *result = reinterpret_cast<int *>(_a[0]);-
113 {-
114 using _t = void (QQuickGravityAffector::*)(qreal );-
115 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickGravityAffector::magnitudeChanged)) {-
116 *result = 0;-
117 return;-
118 }-
119 }-
120 {-
121 using _t = void (QQuickGravityAffector::*)(qreal );-
122 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickGravityAffector::angleChanged)) {-
123 *result = 1;-
124 return;-
125 }-
126 }-
127 }-
128#ifndef QT_NO_PROPERTIES-
129 else if (_c == QMetaObject::ReadProperty) {-
130 QQuickGravityAffector *_t = static_cast<QQuickGravityAffector *>(_o);-
131 Q_UNUSED(_t)-
132 void *_v = _a[0];-
133 switch (_id) {-
134 case 0: *reinterpret_cast< qreal*>(_v) = _t->magnitude(); break;-
135 case 1: *reinterpret_cast< qreal*>(_v) = _t->magnitude(); break;-
136 case 2: *reinterpret_cast< qreal*>(_v) = _t->angle(); break;-
137 default: break;-
138 }-
139 } else if (_c == QMetaObject::WriteProperty) {-
140 QQuickGravityAffector *_t = static_cast<QQuickGravityAffector *>(_o);-
141 Q_UNUSED(_t)-
142 void *_v = _a[0];-
143 switch (_id) {-
144 case 0: _t->setMagnitude(*reinterpret_cast< qreal*>(_v)); break;-
145 case 1: _t->setAcceleration(*reinterpret_cast< qreal*>(_v)); break;-
146 case 2: _t->setAngle(*reinterpret_cast< qreal*>(_v)); break;-
147 default: break;-
148 }-
149 } else if (_c == QMetaObject::ResetProperty) {-
150 }-
151#endif // QT_NO_PROPERTIES-
152}-
153-
154QT_INIT_METAOBJECT const QMetaObject QQuickGravityAffector::staticMetaObject = {-
155 { &QQuickParticleAffector::staticMetaObject, qt_meta_stringdata_QQuickGravityAffector.data,-
156 qt_meta_data_QQuickGravityAffector, qt_static_metacall, nullptr, nullptr}-
157};-
158-
159-
160const QMetaObject *QQuickGravityAffector::metaObject() const-
161{-
162 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
163}-
164-
165void *QQuickGravityAffector::qt_metacast(const char *_clname)-
166{-
167 if (!_clname) return nullptr;-
168 if (!strcmp(_clname, qt_meta_stringdata_QQuickGravityAffector.stringdata0))-
169 return static_cast<void*>(this);-
170 return QQuickParticleAffector::qt_metacast(_clname);-
171}-
172-
173int QQuickGravityAffector::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
174{-
175 _id = QQuickParticleAffector::qt_metacall(_c, _id, _a);-
176 if (_id < 0)-
177 return _id;-
178 if (_c == QMetaObject::InvokeMetaMethod) {-
179 if (_id < 5)-
180 qt_static_metacall(this, _c, _id, _a);-
181 _id -= 5;-
182 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
183 if (_id < 5)-
184 *reinterpret_cast<int*>(_a[0]) = -1;-
185 _id -= 5;-
186 }-
187#ifndef QT_NO_PROPERTIES-
188 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
189 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
190 qt_static_metacall(this, _c, _id, _a);-
191 _id -= 3;-
192 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
193 _id -= 3;-
194 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
195 _id -= 3;-
196 } else if (_c == QMetaObject::QueryPropertyStored) {-
197 _id -= 3;-
198 } else if (_c == QMetaObject::QueryPropertyEditable) {-
199 _id -= 3;-
200 } else if (_c == QMetaObject::QueryPropertyUser) {-
201 _id -= 3;-
202 }-
203#endif // QT_NO_PROPERTIES-
204 return _id;-
205}-
206-
207// SIGNAL 0-
208void QQuickGravityAffector::magnitudeChanged(qreal _t1)-
209{-
210 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
211 QMetaObject::activate(this, &staticMetaObject, 0, _a);-
212}
executed 4 times by 2 tests: end of block
Executed by:
  • tst_examples
  • tst_qquickgravity
4
213-
214// SIGNAL 1-
215void QQuickGravityAffector::angleChanged(qreal _t1)-
216{-
217 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
218 QMetaObject::activate(this, &staticMetaObject, 1, _a);-
219}
executed 2 times by 1 test: end of block
Executed by:
  • tst_qquickgravity
2
220QT_WARNING_POP-
221QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0