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