OpenCoverage

moc_qqmltimer_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qqmltimer_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qqmltimer_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 "../types/qqmltimer_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qqmltimer_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_QQmlTimer_t {-
24 QByteArrayData data[16];-
25 char stringdata0[164];-
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_QQmlTimer_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQmlTimer_t qt_meta_stringdata_QQmlTimer = {-
33 {-
34QT_MOC_LITERAL(0, 0, 9), // "QQmlTimer"-
35QT_MOC_LITERAL(1, 10, 9), // "triggered"-
36QT_MOC_LITERAL(2, 20, 0), // ""-
37QT_MOC_LITERAL(3, 21, 14), // "runningChanged"-
38QT_MOC_LITERAL(4, 36, 15), // "intervalChanged"-
39QT_MOC_LITERAL(5, 52, 13), // "repeatChanged"-
40QT_MOC_LITERAL(6, 66, 23), // "triggeredOnStartChanged"-
41QT_MOC_LITERAL(7, 90, 5), // "start"-
42QT_MOC_LITERAL(8, 96, 4), // "stop"-
43QT_MOC_LITERAL(9, 101, 7), // "restart"-
44QT_MOC_LITERAL(10, 109, 6), // "ticked"-
45QT_MOC_LITERAL(11, 116, 8), // "interval"-
46QT_MOC_LITERAL(12, 125, 7), // "running"-
47QT_MOC_LITERAL(13, 133, 6), // "repeat"-
48QT_MOC_LITERAL(14, 140, 16), // "triggeredOnStart"-
49QT_MOC_LITERAL(15, 157, 6) // "parent"-
50-
51 },-
52 "QQmlTimer\0triggered\0\0runningChanged\0"-
53 "intervalChanged\0repeatChanged\0"-
54 "triggeredOnStartChanged\0start\0stop\0"-
55 "restart\0ticked\0interval\0running\0repeat\0"-
56 "triggeredOnStart\0parent"-
57};-
58#undef QT_MOC_LITERAL-
59-
60static const uint qt_meta_data_QQmlTimer[] = {-
61-
62 // content:-
63 7, // revision-
64 0, // classname-
65 0, 0, // classinfo-
66 9, 14, // methods-
67 5, 68, // properties-
68 0, 0, // enums/sets-
69 0, 0, // constructors-
70 0, // flags-
71 5, // signalCount-
72-
73 // signals: name, argc, parameters, tag, flags-
74 1, 0, 59, 2, 0x06 /* Public */,-
75 3, 0, 60, 2, 0x06 /* Public */,-
76 4, 0, 61, 2, 0x06 /* Public */,-
77 5, 0, 62, 2, 0x06 /* Public */,-
78 6, 0, 63, 2, 0x06 /* Public */,-
79-
80 // slots: name, argc, parameters, tag, flags-
81 7, 0, 64, 2, 0x0a /* Public */,-
82 8, 0, 65, 2, 0x0a /* Public */,-
83 9, 0, 66, 2, 0x0a /* Public */,-
84 10, 0, 67, 2, 0x08 /* Private */,-
85-
86 // signals: parameters-
87 QMetaType::Void,-
88 QMetaType::Void,-
89 QMetaType::Void,-
90 QMetaType::Void,-
91 QMetaType::Void,-
92-
93 // slots: parameters-
94 QMetaType::Void,-
95 QMetaType::Void,-
96 QMetaType::Void,-
97 QMetaType::Void,-
98-
99 // properties: name, type, flags-
100 11, QMetaType::Int, 0x00495103,-
101 12, QMetaType::Bool, 0x00495103,-
102 13, QMetaType::Bool, 0x00495003,-
103 14, QMetaType::Bool, 0x00495103,-
104 15, QMetaType::QObjectStar, 0x00095401,-
105-
106 // properties: notify_signal_id-
107 2,-
108 1,-
109 3,-
110 4,-
111 0,-
112-
113 0 // eod-
114};-
115-
116void QQmlTimer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
117{-
118 if (_c == QMetaObject::InvokeMetaMethod) {-
119 QQmlTimer *_t = static_cast<QQmlTimer *>(_o);-
120 Q_UNUSED(_t)-
121 switch (_id) {-
122 case 0: _t->triggered(); break;-
123 case 1: _t->runningChanged(); break;-
124 case 2: _t->intervalChanged(); break;-
125 case 3: _t->repeatChanged(); break;-
126 case 4: _t->triggeredOnStartChanged(); break;-
127 case 5: _t->start(); break;-
128 case 6: _t->stop(); break;-
129 case 7: _t->restart(); break;-
130 case 8: _t->ticked(); break;-
131 default: ;-
132 }-
133 } else if (_c == QMetaObject::IndexOfMethod) {-
134 int *result = reinterpret_cast<int *>(_a[0]);-
135 {-
136 using _t = void (QQmlTimer::*)();-
137 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlTimer::triggered)) {-
138 *result = 0;-
139 return;-
140 }-
141 }-
142 {-
143 using _t = void (QQmlTimer::*)();-
144 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlTimer::runningChanged)) {-
145 *result = 1;-
146 return;-
147 }-
148 }-
149 {-
150 using _t = void (QQmlTimer::*)();-
151 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlTimer::intervalChanged)) {-
152 *result = 2;-
153 return;-
154 }-
155 }-
156 {-
157 using _t = void (QQmlTimer::*)();-
158 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlTimer::repeatChanged)) {-
159 *result = 3;-
160 return;-
161 }-
162 }-
163 {-
164 using _t = void (QQmlTimer::*)();-
165 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQmlTimer::triggeredOnStartChanged)) {-
166 *result = 4;-
167 return;-
168 }-
169 }-
170 }-
171#ifndef QT_NO_PROPERTIES-
172 else if (_c == QMetaObject::ReadProperty) {-
173 QQmlTimer *_t = static_cast<QQmlTimer *>(_o);-
174 Q_UNUSED(_t)-
175 void *_v = _a[0];-
176 switch (_id) {-
177 case 0: *reinterpret_cast< int*>(_v) = _t->interval(); break;-
178 case 1: *reinterpret_cast< bool*>(_v) = _t->isRunning(); break;-
179 case 2: *reinterpret_cast< bool*>(_v) = _t->isRepeating(); break;-
180 case 3: *reinterpret_cast< bool*>(_v) = _t->triggeredOnStart(); break;-
181 case 4: *reinterpret_cast< QObject**>(_v) = _t->parent(); break;-
182 default: break;-
183 }-
184 } else if (_c == QMetaObject::WriteProperty) {-
185 QQmlTimer *_t = static_cast<QQmlTimer *>(_o);-
186 Q_UNUSED(_t)-
187 void *_v = _a[0];-
188 switch (_id) {-
189 case 0: _t->setInterval(*reinterpret_cast< int*>(_v)); break;-
190 case 1: _t->setRunning(*reinterpret_cast< bool*>(_v)); break;-
191 case 2: _t->setRepeating(*reinterpret_cast< bool*>(_v)); break;-
192 case 3: _t->setTriggeredOnStart(*reinterpret_cast< bool*>(_v)); break;-
193 default: break;-
194 }-
195 } else if (_c == QMetaObject::ResetProperty) {-
196 }-
197#endif // QT_NO_PROPERTIES-
198 Q_UNUSED(_a);-
199}-
200-
201QT_INIT_METAOBJECT const QMetaObject QQmlTimer::staticMetaObject = {-
202 { &QObject::staticMetaObject, qt_meta_stringdata_QQmlTimer.data,-
203 qt_meta_data_QQmlTimer, qt_static_metacall, nullptr, nullptr}-
204};-
205-
206-
207const QMetaObject *QQmlTimer::metaObject() const-
208{-
209 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
210}-
211-
212void *QQmlTimer::qt_metacast(const char *_clname)-
213{-
214 if (!_clname) return nullptr;-
215 if (!strcmp(_clname, qt_meta_stringdata_QQmlTimer.stringdata0))-
216 return static_cast<void*>(this);-
217 if (!strcmp(_clname, "QQmlParserStatus"))-
218 return static_cast< QQmlParserStatus*>(this);-
219 if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))-
220 return static_cast< QQmlParserStatus*>(this);-
221 return QObject::qt_metacast(_clname);-
222}-
223-
224int QQmlTimer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
225{-
226 _id = QObject::qt_metacall(_c, _id, _a);-
227 if (_id < 0)-
228 return _id;-
229 if (_c == QMetaObject::InvokeMetaMethod) {-
230 if (_id < 9)-
231 qt_static_metacall(this, _c, _id, _a);-
232 _id -= 9;-
233 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
234 if (_id < 9)-
235 *reinterpret_cast<int*>(_a[0]) = -1;-
236 _id -= 9;-
237 }-
238#ifndef QT_NO_PROPERTIES-
239 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
240 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
241 qt_static_metacall(this, _c, _id, _a);-
242 _id -= 5;-
243 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
244 _id -= 5;-
245 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
246 _id -= 5;-
247 } else if (_c == QMetaObject::QueryPropertyStored) {-
248 _id -= 5;-
249 } else if (_c == QMetaObject::QueryPropertyEditable) {-
250 _id -= 5;-
251 } else if (_c == QMetaObject::QueryPropertyUser) {-
252 _id -= 5;-
253 }-
254#endif // QT_NO_PROPERTIES-
255 return _id;-
256}-
257-
258// SIGNAL 0-
259void QQmlTimer::triggered()-
260{-
261 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
262}
executed 110 times by 12 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickrepeater
110
263-
264// SIGNAL 1-
265void QQmlTimer::runningChanged()-
266{-
267 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);-
268}
executed 204 times by 14 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmldebugjs
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
204
269-
270// SIGNAL 2-
271void QQmlTimer::intervalChanged()-
272{-
273 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);-
274}
executed 152 times by 13 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlapplicationengine
  • tst_qqmlecmascript
  • tst_qqmlnativeconnector
  • tst_qqmlprofilerservice
  • tst_qqmlpropertymap
  • tst_qqmltimer
  • tst_qquickimage
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickparticlesystem
  • tst_qquickpathview
  • tst_qquickrepeater
152
275-
276// SIGNAL 3-
277void QQmlTimer::repeatChanged()-
278{-
279 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);-
280}
executed 62 times by 5 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlnativeconnector
  • tst_qqmltimer
  • tst_qquickpathview
  • tst_qquickrepeater
62
281-
282// SIGNAL 4-
283void QQmlTimer::triggeredOnStartChanged()-
284{-
285 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);-
286}
executed 34 times by 3 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmldebugjs
  • tst_qqmltimer
34
287QT_WARNING_POP-
288QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0