OpenCoverage

moc_qquickanimationcontroller_p.cpp

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

Generated by Squish Coco 4.2.0