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