| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | #include "../qquickturbulence_p.h" | - |
| 10 | #include <QtCore/qbytearray.h> | - |
| 11 | #include <QtCore/qmetatype.h> | - |
| 12 | #if !defined(Q_MOC_OUTPUT_REVISION) | - |
| 13 | #error "The header file 'qquickturbulence_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_QQuickTurbulenceAffector_t { | - |
| 24 | QByteArrayData data[9]; | - |
| 25 | char stringdata0[113]; | - |
| 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_QQuickTurbulenceAffector_t, stringdata0) + ofs \ | - |
| 30 | - idx * sizeof(QByteArrayData)) \ | - |
| 31 | ) | - |
| 32 | static const qt_meta_stringdata_QQuickTurbulenceAffector_t qt_meta_stringdata_QQuickTurbulenceAffector = { | - |
| 33 | { | - |
| 34 | QT_MOC_LITERAL(0, 0, 24), | - |
| 35 | QT_MOC_LITERAL(1, 25, 15), | - |
| 36 | QT_MOC_LITERAL(2, 41, 0), | - |
| 37 | QT_MOC_LITERAL(3, 42, 3), | - |
| 38 | QT_MOC_LITERAL(4, 46, 18), | - |
| 39 | QT_MOC_LITERAL(5, 65, 11), | - |
| 40 | QT_MOC_LITERAL(6, 77, 14), | - |
| 41 | QT_MOC_LITERAL(7, 92, 8), | - |
| 42 | QT_MOC_LITERAL(8, 101, 11) | - |
| 43 | | - |
| 44 | }, | - |
| 45 | "QQuickTurbulenceAffector\0strengthChanged\0" | - |
| 46 | "\0arg\0noiseSourceChanged\0setStrength\0" | - |
| 47 | "setNoiseSource\0strength\0noiseSource" | - |
| 48 | }; | - |
| 49 | #undef QT_MOC_LITERAL | - |
| 50 | | - |
| 51 | static const uint qt_meta_data_QQuickTurbulenceAffector[] = { | - |
| 52 | | - |
| 53 | | - |
| 54 | 7, | - |
| 55 | 0, | - |
| 56 | 0, 0, | - |
| 57 | 4, 14, | - |
| 58 | 2, 46, | - |
| 59 | 0, 0, | - |
| 60 | 0, 0, | - |
| 61 | 0, | - |
| 62 | 2, | - |
| 63 | | - |
| 64 | | - |
| 65 | 1, 1, 34, 2, 0x06 , | - |
| 66 | 4, 1, 37, 2, 0x06 , | - |
| 67 | | - |
| 68 | | - |
| 69 | 5, 1, 40, 2, 0x0a , | - |
| 70 | 6, 1, 43, 2, 0x0a , | - |
| 71 | | - |
| 72 | | - |
| 73 | QMetaType::Void, QMetaType::QReal, 3, | - |
| 74 | QMetaType::Void, QMetaType::QUrl, 3, | - |
| 75 | | - |
| 76 | | - |
| 77 | QMetaType::Void, QMetaType::QReal, 3, | - |
| 78 | QMetaType::Void, QMetaType::QUrl, 3, | - |
| 79 | | - |
| 80 | | - |
| 81 | 7, QMetaType::QReal, 0x00495103, | - |
| 82 | 8, QMetaType::QUrl, 0x00495103, | - |
| 83 | | - |
| 84 | | - |
| 85 | 0, | - |
| 86 | 1, | - |
| 87 | | - |
| 88 | 0 | - |
| 89 | }; | - |
| 90 | | - |
| 91 | void QQuickTurbulenceAffector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
| 92 | { | - |
| 93 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
| 94 | QQuickTurbulenceAffector *_t = static_cast<QQuickTurbulenceAffector *>(_o); | - |
| 95 | Q_UNUSED(_t) | - |
| 96 | switch (_id) { | - |
| 97 | case 0: _t->strengthChanged((*reinterpret_cast< qreal(*)>(_a[1]))); break; | - |
| 98 | case 1: _t->noiseSourceChanged((*reinterpret_cast< QUrl(*)>(_a[1]))); break; | - |
| 99 | case 2: _t->setStrength((*reinterpret_cast< qreal(*)>(_a[1]))); break; | - |
| 100 | case 3: _t->setNoiseSource((*reinterpret_cast< QUrl(*)>(_a[1]))); break; | - |
| 101 | default: ; | - |
| 102 | } | - |
| 103 | } else if (_c == QMetaObject::IndexOfMethod) { | - |
| 104 | int *result = reinterpret_cast<int *>(_a[0]); | - |
| 105 | { | - |
| 106 | using _t = void (QQuickTurbulenceAffector::*)(qreal ); | - |
| 107 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTurbulenceAffector::strengthChanged)) { | - |
| 108 | *result = 0; | - |
| 109 | return; | - |
| 110 | } | - |
| 111 | } | - |
| 112 | { | - |
| 113 | using _t = void (QQuickTurbulenceAffector::*)(QUrl ); | - |
| 114 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickTurbulenceAffector::noiseSourceChanged)) { | - |
| 115 | *result = 1; | - |
| 116 | return; | - |
| 117 | } | - |
| 118 | } | - |
| 119 | } | - |
| 120 | #ifndef QT_NO_PROPERTIES | - |
| 121 | else if (_c == QMetaObject::ReadProperty) { | - |
| 122 | QQuickTurbulenceAffector *_t = static_cast<QQuickTurbulenceAffector *>(_o); | - |
| 123 | Q_UNUSED(_t) | - |
| 124 | void *_v = _a[0]; | - |
| 125 | switch (_id) { | - |
| 126 | case 0: *reinterpret_cast< qreal*>(_v) = _t->strength(); break; | - |
| 127 | case 1: *reinterpret_cast< QUrl*>(_v) = _t->noiseSource(); break; | - |
| 128 | default: break; | - |
| 129 | } | - |
| 130 | } else if (_c == QMetaObject::WriteProperty) { | - |
| 131 | QQuickTurbulenceAffector *_t = static_cast<QQuickTurbulenceAffector *>(_o); | - |
| 132 | Q_UNUSED(_t) | - |
| 133 | void *_v = _a[0]; | - |
| 134 | switch (_id) { | - |
| 135 | case 0: _t->setStrength(*reinterpret_cast< qreal*>(_v)); break; | - |
| 136 | case 1: _t->setNoiseSource(*reinterpret_cast< QUrl*>(_v)); break; | - |
| 137 | default: break; | - |
| 138 | } | - |
| 139 | } else if (_c == QMetaObject::ResetProperty) { | - |
| 140 | } | - |
| 141 | #endif // QT_NO_PROPERTIES | - |
| 142 | } | - |
| 143 | | - |
| 144 | QT_INIT_METAOBJECT const QMetaObject QQuickTurbulenceAffector::staticMetaObject = { | - |
| 145 | { &QQuickParticleAffector::staticMetaObject, qt_meta_stringdata_QQuickTurbulenceAffector.data, | - |
| 146 | qt_meta_data_QQuickTurbulenceAffector, qt_static_metacall, nullptr, nullptr} | - |
| 147 | }; | - |
| 148 | | - |
| 149 | | - |
| 150 | const QMetaObject *QQuickTurbulenceAffector::metaObject() const | - |
| 151 | { | - |
| 152 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
| 153 | } | - |
| 154 | | - |
| 155 | void *QQuickTurbulenceAffector::qt_metacast(const char *_clname) | - |
| 156 | { | - |
| 157 | if (!_clname) return nullptr; | - |
| 158 | if (!strcmp(_clname, qt_meta_stringdata_QQuickTurbulenceAffector.stringdata0)) | - |
| 159 | return static_cast<void*>(this); | - |
| 160 | return QQuickParticleAffector::qt_metacast(_clname); | - |
| 161 | } | - |
| 162 | | - |
| 163 | int QQuickTurbulenceAffector::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
| 164 | { | - |
| 165 | _id = QQuickParticleAffector::qt_metacall(_c, _id, _a); | - |
| 166 | if (_id < 0) | - |
| 167 | return _id; | - |
| 168 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
| 169 | if (_id < 4) | - |
| 170 | qt_static_metacall(this, _c, _id, _a); | - |
| 171 | _id -= 4; | - |
| 172 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
| 173 | if (_id < 4) | - |
| 174 | *reinterpret_cast<int*>(_a[0]) = -1; | - |
| 175 | _id -= 4; | - |
| 176 | } | - |
| 177 | #ifndef QT_NO_PROPERTIES | - |
| 178 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | - |
| 179 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { | - |
| 180 | qt_static_metacall(this, _c, _id, _a); | - |
| 181 | _id -= 2; | - |
| 182 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | - |
| 183 | _id -= 2; | - |
| 184 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | - |
| 185 | _id -= 2; | - |
| 186 | } else if (_c == QMetaObject::QueryPropertyStored) { | - |
| 187 | _id -= 2; | - |
| 188 | } else if (_c == QMetaObject::QueryPropertyEditable) { | - |
| 189 | _id -= 2; | - |
| 190 | } else if (_c == QMetaObject::QueryPropertyUser) { | - |
| 191 | _id -= 2; | - |
| 192 | } | - |
| 193 | #endif // QT_NO_PROPERTIES | - |
| 194 | return _id; | - |
| 195 | } | - |
| 196 | | - |
| 197 | | - |
| 198 | void QQuickTurbulenceAffector::strengthChanged(qreal _t1) | - |
| 199 | { | - |
| 200 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; | - |
| 201 | QMetaObject::activate(this, &staticMetaObject, 0, _a); | - |
| 202 | }executed 10 times by 2 tests: end of blockExecuted by:- tst_examples
- tst_qquickturbulence
| 10 |
| 203 | | - |
| 204 | | - |
| 205 | void QQuickTurbulenceAffector::noiseSourceChanged(QUrl _t1) | - |
| 206 | { | - |
| 207 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; | - |
| 208 | QMetaObject::activate(this, &staticMetaObject, 1, _a); | - |
| 209 | } never executed: end of block | 0 |
| 210 | QT_WARNING_POP | - |
| 211 | QT_END_MOC_NAMESPACE | - |
| | |