| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/particles/.moc/moc_qquickcustomaffector_p.cpp | 
| Source code | Switch to Preprocessed file | 
| Line | Source | Count | 
|---|---|---|
| 1 | /**************************************************************************** | - | 
| 2 | ** Meta object code from reading C++ file 'qquickcustomaffector_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 "../qquickcustomaffector_p.h" | - | 
| 10 | #include <QtCore/qbytearray.h> | - | 
| 11 | #include <QtCore/qmetatype.h> | - | 
| 12 | #if !defined(Q_MOC_OUTPUT_REVISION) | - | 
| 13 | #error "The header file 'qquickcustomaffector_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 | - | |
| 20 | QT_BEGIN_MOC_NAMESPACE | - | 
| 21 | QT_WARNING_PUSH | - | 
| 22 | QT_WARNING_DISABLE_DEPRECATED | - | 
| 23 | struct qt_meta_stringdata_QQuickCustomAffector_t { | - | 
| 24 | QByteArrayData data[20]; | - | 
| 25 | char stringdata0[245]; | - | 
| 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_QQuickCustomAffector_t, stringdata0) + ofs \ | - | 
| 30 | - idx * sizeof(QByteArrayData)) \ | - | 
| 31 | ) | - | 
| 32 | static const qt_meta_stringdata_QQuickCustomAffector_t qt_meta_stringdata_QQuickCustomAffector = { | - | 
| 33 | { | - | 
| 34 | QT_MOC_LITERAL(0, 0, 20), // "QQuickCustomAffector" | - | 
| 35 | QT_MOC_LITERAL(1, 21, 15), // "affectParticles" | - | 
| 36 | QT_MOC_LITERAL(2, 37, 0), // "" | - | 
| 37 | QT_MOC_LITERAL(3, 38, 12), // "QQmlV4Handle" | - | 
| 38 | QT_MOC_LITERAL(4, 51, 9), // "particles" | - | 
| 39 | QT_MOC_LITERAL(5, 61, 2), // "dt" | - | 
| 40 | QT_MOC_LITERAL(6, 64, 15), // "positionChanged" | - | 
| 41 | QT_MOC_LITERAL(7, 80, 16), // "QQuickDirection*" | - | 
| 42 | QT_MOC_LITERAL(8, 97, 3), // "arg" | - | 
| 43 | QT_MOC_LITERAL(9, 101, 15), // "velocityChanged" | - | 
| 44 | QT_MOC_LITERAL(10, 117, 19), // "accelerationChanged" | - | 
| 45 | QT_MOC_LITERAL(11, 137, 15), // "relativeChanged" | - | 
| 46 | QT_MOC_LITERAL(12, 153, 11), // "setPosition" | - | 
| 47 | QT_MOC_LITERAL(13, 165, 11), // "setVelocity" | - | 
| 48 | QT_MOC_LITERAL(14, 177, 15), // "setAcceleration" | - | 
| 49 | QT_MOC_LITERAL(15, 193, 11), // "setRelative" | - | 
| 50 | QT_MOC_LITERAL(16, 205, 8), // "relative" | - | 
| 51 | QT_MOC_LITERAL(17, 214, 8), // "position" | - | 
| 52 | QT_MOC_LITERAL(18, 223, 8), // "velocity" | - | 
| 53 | QT_MOC_LITERAL(19, 232, 12) // "acceleration" | - | 
| 54 | - | |
| 55 | }, | - | 
| 56 | "QQuickCustomAffector\0affectParticles\0" | - | 
| 57 | "\0QQmlV4Handle\0particles\0dt\0positionChanged\0" | - | 
| 58 | "QQuickDirection*\0arg\0velocityChanged\0" | - | 
| 59 | "accelerationChanged\0relativeChanged\0" | - | 
| 60 | "setPosition\0setVelocity\0setAcceleration\0" | - | 
| 61 | "setRelative\0relative\0position\0velocity\0" | - | 
| 62 | "acceleration" | - | 
| 63 | }; | - | 
| 64 | #undef QT_MOC_LITERAL | - | 
| 65 | - | |
| 66 | static const uint qt_meta_data_QQuickCustomAffector[] = { | - | 
| 67 | - | |
| 68 | // content: | - | 
| 69 | 7, // revision | - | 
| 70 | 0, // classname | - | 
| 71 | 0, 0, // classinfo | - | 
| 72 | 9, 14, // methods | - | 
| 73 | 4, 88, // properties | - | 
| 74 | 0, 0, // enums/sets | - | 
| 75 | 0, 0, // constructors | - | 
| 76 | 0, // flags | - | 
| 77 | 5, // signalCount | - | 
| 78 | - | |
| 79 | // signals: name, argc, parameters, tag, flags | - | 
| 80 | 1, 2, 59, 2, 0x06 /* Public */, | - | 
| 81 | 6, 1, 64, 2, 0x06 /* Public */, | - | 
| 82 | 9, 1, 67, 2, 0x06 /* Public */, | - | 
| 83 | 10, 1, 70, 2, 0x06 /* Public */, | - | 
| 84 | 11, 1, 73, 2, 0x06 /* Public */, | - | 
| 85 | - | |
| 86 | // slots: name, argc, parameters, tag, flags | - | 
| 87 | 12, 1, 76, 2, 0x0a /* Public */, | - | 
| 88 | 13, 1, 79, 2, 0x0a /* Public */, | - | 
| 89 | 14, 1, 82, 2, 0x0a /* Public */, | - | 
| 90 | 15, 1, 85, 2, 0x0a /* Public */, | - | 
| 91 | - | |
| 92 | // signals: parameters | - | 
| 93 | QMetaType::Void, 0x80000000 | 3, QMetaType::QReal, 4, 5, | - | 
| 94 | QMetaType::Void, 0x80000000 | 7, 8, | - | 
| 95 | QMetaType::Void, 0x80000000 | 7, 8, | - | 
| 96 | QMetaType::Void, 0x80000000 | 7, 8, | - | 
| 97 | QMetaType::Void, QMetaType::Bool, 8, | - | 
| 98 | - | |
| 99 | // slots: parameters | - | 
| 100 | QMetaType::Void, 0x80000000 | 7, 8, | - | 
| 101 | QMetaType::Void, 0x80000000 | 7, 8, | - | 
| 102 | QMetaType::Void, 0x80000000 | 7, 8, | - | 
| 103 | QMetaType::Void, QMetaType::Bool, 8, | - | 
| 104 | - | |
| 105 | // properties: name, type, flags | - | 
| 106 | 16, QMetaType::Bool, 0x00495103, | - | 
| 107 | 17, 0x80000000 | 7, 0x0049510f, | - | 
| 108 | 18, 0x80000000 | 7, 0x0049510f, | - | 
| 109 | 19, 0x80000000 | 7, 0x0049510f, | - | 
| 110 | - | |
| 111 | // properties: notify_signal_id | - | 
| 112 | 4, | - | 
| 113 | 1, | - | 
| 114 | 2, | - | 
| 115 | 3, | - | 
| 116 | - | |
| 117 | 0 // eod | - | 
| 118 | }; | - | 
| 119 | - | |
| 120 | void QQuickCustomAffector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - | 
| 121 | { | - | 
| 122 | if (_c == QMetaObject::InvokeMetaMethod) { | - | 
| 123 | QQuickCustomAffector *_t = static_cast<QQuickCustomAffector *>(_o); | - | 
| 124 | Q_UNUSED(_t) | - | 
| 125 | switch (_id) { | - | 
| 126 | case 0: _t->affectParticles((*reinterpret_cast< QQmlV4Handle(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2]))); break; | - | 
| 127 | case 1: _t->positionChanged((*reinterpret_cast< QQuickDirection*(*)>(_a[1]))); break; | - | 
| 128 | case 2: _t->velocityChanged((*reinterpret_cast< QQuickDirection*(*)>(_a[1]))); break; | - | 
| 129 | case 3: _t->accelerationChanged((*reinterpret_cast< QQuickDirection*(*)>(_a[1]))); break; | - | 
| 130 | case 4: _t->relativeChanged((*reinterpret_cast< bool(*)>(_a[1]))); break; | - | 
| 131 | case 5: _t->setPosition((*reinterpret_cast< QQuickDirection*(*)>(_a[1]))); break; | - | 
| 132 | case 6: _t->setVelocity((*reinterpret_cast< QQuickDirection*(*)>(_a[1]))); break; | - | 
| 133 | case 7: _t->setAcceleration((*reinterpret_cast< QQuickDirection*(*)>(_a[1]))); break; | - | 
| 134 | case 8: _t->setRelative((*reinterpret_cast< bool(*)>(_a[1]))); break; | - | 
| 135 | default: ; | - | 
| 136 | } | - | 
| 137 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - | 
| 138 | switch (_id) { | - | 
| 139 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - | 
| 140 | case 0: | - | 
| 141 | switch (*reinterpret_cast<int*>(_a[1])) { | - | 
| 142 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - | 
| 143 | case 0: | - | 
| 144 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlV4Handle >(); break; | - | 
| 145 | } | - | 
| 146 | break; | - | 
| 147 | case 1: | - | 
| 148 | switch (*reinterpret_cast<int*>(_a[1])) { | - | 
| 149 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - | 
| 150 | case 0: | - | 
| 151 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break; | - | 
| 152 | } | - | 
| 153 | break; | - | 
| 154 | case 2: | - | 
| 155 | switch (*reinterpret_cast<int*>(_a[1])) { | - | 
| 156 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - | 
| 157 | case 0: | - | 
| 158 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break; | - | 
| 159 | } | - | 
| 160 | break; | - | 
| 161 | case 3: | - | 
| 162 | switch (*reinterpret_cast<int*>(_a[1])) { | - | 
| 163 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - | 
| 164 | case 0: | - | 
| 165 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break; | - | 
| 166 | } | - | 
| 167 | break; | - | 
| 168 | case 5: | - | 
| 169 | switch (*reinterpret_cast<int*>(_a[1])) { | - | 
| 170 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - | 
| 171 | case 0: | - | 
| 172 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break; | - | 
| 173 | } | - | 
| 174 | break; | - | 
| 175 | case 6: | - | 
| 176 | switch (*reinterpret_cast<int*>(_a[1])) { | - | 
| 177 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - | 
| 178 | case 0: | - | 
| 179 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break; | - | 
| 180 | } | - | 
| 181 | break; | - | 
| 182 | case 7: | - | 
| 183 | switch (*reinterpret_cast<int*>(_a[1])) { | - | 
| 184 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - | 
| 185 | case 0: | - | 
| 186 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break; | - | 
| 187 | } | - | 
| 188 | break; | - | 
| 189 | } | - | 
| 190 | } else if (_c == QMetaObject::IndexOfMethod) { | - | 
| 191 | int *result = reinterpret_cast<int *>(_a[0]); | - | 
| 192 | { | - | 
| 193 | using _t = void (QQuickCustomAffector::*)(QQmlV4Handle , qreal ); | - | 
| 194 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickCustomAffector::affectParticles)) { | - | 
| 195 | *result = 0; | - | 
| 196 | return; | - | 
| 197 | } | - | 
| 198 | } | - | 
| 199 | { | - | 
| 200 | using _t = void (QQuickCustomAffector::*)(QQuickDirection * ); | - | 
| 201 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickCustomAffector::positionChanged)) { | - | 
| 202 | *result = 1; | - | 
| 203 | return; | - | 
| 204 | } | - | 
| 205 | } | - | 
| 206 | { | - | 
| 207 | using _t = void (QQuickCustomAffector::*)(QQuickDirection * ); | - | 
| 208 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickCustomAffector::velocityChanged)) { | - | 
| 209 | *result = 2; | - | 
| 210 | return; | - | 
| 211 | } | - | 
| 212 | } | - | 
| 213 | { | - | 
| 214 | using _t = void (QQuickCustomAffector::*)(QQuickDirection * ); | - | 
| 215 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickCustomAffector::accelerationChanged)) { | - | 
| 216 | *result = 3; | - | 
| 217 | return; | - | 
| 218 | } | - | 
| 219 | } | - | 
| 220 | { | - | 
| 221 | using _t = void (QQuickCustomAffector::*)(bool ); | - | 
| 222 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickCustomAffector::relativeChanged)) { | - | 
| 223 | *result = 4; | - | 
| 224 | return; | - | 
| 225 | } | - | 
| 226 | } | - | 
| 227 | } else if (_c == QMetaObject::RegisterPropertyMetaType) { | - | 
| 228 | switch (_id) { | - | 
| 229 | default: *reinterpret_cast<int*>(_a[0]) = -1; break; | - | 
| 230 | case 3: | - | 
| 231 | case 2: | - | 
| 232 | case 1: | - | 
| 233 | *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDirection* >(); break; | - | 
| 234 | } | - | 
| 235 | } | - | 
| 236 | - | |
| 237 | #ifndef QT_NO_PROPERTIES | - | 
| 238 | else if (_c == QMetaObject::ReadProperty) { | - | 
| 239 | QQuickCustomAffector *_t = static_cast<QQuickCustomAffector *>(_o); | - | 
| 240 | Q_UNUSED(_t) | - | 
| 241 | void *_v = _a[0]; | - | 
| 242 | switch (_id) { | - | 
| 243 | case 0: *reinterpret_cast< bool*>(_v) = _t->relative(); break; | - | 
| 244 | case 1: *reinterpret_cast< QQuickDirection**>(_v) = _t->position(); break; | - | 
| 245 | case 2: *reinterpret_cast< QQuickDirection**>(_v) = _t->velocity(); break; | - | 
| 246 | case 3: *reinterpret_cast< QQuickDirection**>(_v) = _t->acceleration(); break; | - | 
| 247 | default: break; | - | 
| 248 | } | - | 
| 249 | } else if (_c == QMetaObject::WriteProperty) { | - | 
| 250 | QQuickCustomAffector *_t = static_cast<QQuickCustomAffector *>(_o); | - | 
| 251 | Q_UNUSED(_t) | - | 
| 252 | void *_v = _a[0]; | - | 
| 253 | switch (_id) { | - | 
| 254 | case 0: _t->setRelative(*reinterpret_cast< bool*>(_v)); break; | - | 
| 255 | case 1: _t->setPosition(*reinterpret_cast< QQuickDirection**>(_v)); break; | - | 
| 256 | case 2: _t->setVelocity(*reinterpret_cast< QQuickDirection**>(_v)); break; | - | 
| 257 | case 3: _t->setAcceleration(*reinterpret_cast< QQuickDirection**>(_v)); break; | - | 
| 258 | default: break; | - | 
| 259 | } | - | 
| 260 | } else if (_c == QMetaObject::ResetProperty) { | - | 
| 261 | QQuickCustomAffector *_t = static_cast<QQuickCustomAffector *>(_o); | - | 
| 262 | Q_UNUSED(_t) | - | 
| 263 | switch (_id) { | - | 
| 264 | case 1: _t->positionReset(); break; | - | 
| 265 | case 2: _t->velocityReset(); break; | - | 
| 266 | case 3: _t->accelerationReset(); break; | - | 
| 267 | default: break; | - | 
| 268 | } | - | 
| 269 | } | - | 
| 270 | #endif // QT_NO_PROPERTIES | - | 
| 271 | } | - | 
| 272 | - | |
| 273 | QT_INIT_METAOBJECT const QMetaObject QQuickCustomAffector::staticMetaObject = { | - | 
| 274 | { &QQuickParticleAffector::staticMetaObject, qt_meta_stringdata_QQuickCustomAffector.data, | - | 
| 275 | qt_meta_data_QQuickCustomAffector, qt_static_metacall, nullptr, nullptr} | - | 
| 276 | }; | - | 
| 277 | - | |
| 278 | - | |
| 279 | const QMetaObject *QQuickCustomAffector::metaObject() const | - | 
| 280 | { | - | 
| 281 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - | 
| 282 | } | - | 
| 283 | - | |
| 284 | void *QQuickCustomAffector::qt_metacast(const char *_clname) | - | 
| 285 | { | - | 
| 286 | if (!_clname) return nullptr; | - | 
| 287 | if (!strcmp(_clname, qt_meta_stringdata_QQuickCustomAffector.stringdata0)) | - | 
| 288 | return static_cast<void*>(this); | - | 
| 289 | return QQuickParticleAffector::qt_metacast(_clname); | - | 
| 290 | } | - | 
| 291 | - | |
| 292 | int QQuickCustomAffector::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - | 
| 293 | { | - | 
| 294 | _id = QQuickParticleAffector::qt_metacall(_c, _id, _a); | - | 
| 295 | if (_id < 0) | - | 
| 296 | return _id; | - | 
| 297 | if (_c == QMetaObject::InvokeMetaMethod) { | - | 
| 298 | if (_id < 9) | - | 
| 299 | qt_static_metacall(this, _c, _id, _a); | - | 
| 300 | _id -= 9; | - | 
| 301 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - | 
| 302 | if (_id < 9) | - | 
| 303 | qt_static_metacall(this, _c, _id, _a); | - | 
| 304 | _id -= 9; | - | 
| 305 | } | - | 
| 306 | #ifndef QT_NO_PROPERTIES | - | 
| 307 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | - | 
| 308 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { | - | 
| 309 | qt_static_metacall(this, _c, _id, _a); | - | 
| 310 | _id -= 4; | - | 
| 311 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | - | 
| 312 | _id -= 4; | - | 
| 313 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | - | 
| 314 | _id -= 4; | - | 
| 315 | } else if (_c == QMetaObject::QueryPropertyStored) { | - | 
| 316 | _id -= 4; | - | 
| 317 | } else if (_c == QMetaObject::QueryPropertyEditable) { | - | 
| 318 | _id -= 4; | - | 
| 319 | } else if (_c == QMetaObject::QueryPropertyUser) { | - | 
| 320 | _id -= 4; | - | 
| 321 | } | - | 
| 322 | #endif // QT_NO_PROPERTIES | - | 
| 323 | return _id; | - | 
| 324 | } | - | 
| 325 | - | |
| 326 | // SIGNAL 0 | - | 
| 327 | void QQuickCustomAffector::affectParticles(QQmlV4Handle _t1, qreal _t2) | - | 
| 328 | { | - | 
| 329 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) }; | - | 
| 330 | QMetaObject::activate(this, &staticMetaObject, 0, _a); | - | 
| 331 | } executed 77 times by 1 test:  end of blockExecuted by: 
 | 77 | 
| 332 | - | |
| 333 | // SIGNAL 1 | - | 
| 334 | void QQuickCustomAffector::positionChanged(QQuickDirection * _t1) | - | 
| 335 | { | - | 
| 336 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; | - | 
| 337 | QMetaObject::activate(this, &staticMetaObject, 1, _a); | - | 
| 338 | } executed 6 times by 2 tests:  end of blockExecuted by: 
 | 6 | 
| 339 | - | |
| 340 | // SIGNAL 2 | - | 
| 341 | void QQuickCustomAffector::velocityChanged(QQuickDirection * _t1) | - | 
| 342 | { | - | 
| 343 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; | - | 
| 344 | QMetaObject::activate(this, &staticMetaObject, 2, _a); | - | 
| 345 | } executed 4 times by 2 tests:  end of blockExecuted by: 
 | 4 | 
| 346 | - | |
| 347 | // SIGNAL 3 | - | 
| 348 | void QQuickCustomAffector::accelerationChanged(QQuickDirection * _t1) | - | 
| 349 | { | - | 
| 350 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; | - | 
| 351 | QMetaObject::activate(this, &staticMetaObject, 3, _a); | - | 
| 352 | } executed 4 times by 2 tests:  end of blockExecuted by: 
 | 4 | 
| 353 | - | |
| 354 | // SIGNAL 4 | - | 
| 355 | void QQuickCustomAffector::relativeChanged(bool _t1) | - | 
| 356 | { | - | 
| 357 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; | - | 
| 358 | QMetaObject::activate(this, &staticMetaObject, 4, _a); | - | 
| 359 | } executed 6 times by 2 tests:  end of blockExecuted by: 
 | 6 | 
| 360 | QT_WARNING_POP | - | 
| 361 | QT_END_MOC_NAMESPACE | - | 
| Source code | Switch to Preprocessed file |