OpenCoverage

moc_qquickstategroup_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquickstategroup_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qquickstategroup_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/qquickstategroup_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qquickstategroup_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_QQuickStateGroup_t {-
24 QByteArrayData data[8];-
25 char stringdata0[121];-
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_QQuickStateGroup_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQuickStateGroup_t qt_meta_stringdata_QQuickStateGroup = {-
33 {-
34QT_MOC_LITERAL(0, 0, 16), // "QQuickStateGroup"-
35QT_MOC_LITERAL(1, 17, 12), // "stateChanged"-
36QT_MOC_LITERAL(2, 30, 0), // ""-
37QT_MOC_LITERAL(3, 31, 5), // "state"-
38QT_MOC_LITERAL(4, 37, 6), // "states"-
39QT_MOC_LITERAL(5, 44, 29), // "QQmlListProperty<QQuickState>"-
40QT_MOC_LITERAL(6, 74, 11), // "transitions"-
41QT_MOC_LITERAL(7, 86, 34) // "QQmlListProperty<QQuickTransi..."-
42-
43 },-
44 "QQuickStateGroup\0stateChanged\0\0state\0"-
45 "states\0QQmlListProperty<QQuickState>\0"-
46 "transitions\0QQmlListProperty<QQuickTransition>"-
47};-
48#undef QT_MOC_LITERAL-
49-
50static const uint qt_meta_data_QQuickStateGroup[] = {-
51-
52 // content:-
53 7, // revision-
54 0, // classname-
55 0, 0, // classinfo-
56 1, 14, // methods-
57 3, 22, // properties-
58 0, 0, // enums/sets-
59 0, 0, // constructors-
60 0, // flags-
61 1, // signalCount-
62-
63 // signals: name, argc, parameters, tag, flags-
64 1, 1, 19, 2, 0x06 /* Public */,-
65-
66 // signals: parameters-
67 QMetaType::Void, QMetaType::QString, 2,-
68-
69 // properties: name, type, flags-
70 3, QMetaType::QString, 0x00495103,-
71 4, 0x80000000 | 5, 0x00094009,-
72 6, 0x80000000 | 7, 0x00094009,-
73-
74 // properties: notify_signal_id-
75 0,-
76 0,-
77 0,-
78-
79 0 // eod-
80};-
81-
82void QQuickStateGroup::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
83{-
84 if (_c == QMetaObject::InvokeMetaMethod) {-
85 QQuickStateGroup *_t = static_cast<QQuickStateGroup *>(_o);-
86 Q_UNUSED(_t)-
87 switch (_id) {-
88 case 0: _t->stateChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;-
89 default: ;-
90 }-
91 } else if (_c == QMetaObject::IndexOfMethod) {-
92 int *result = reinterpret_cast<int *>(_a[0]);-
93 {-
94 using _t = void (QQuickStateGroup::*)(const QString & );-
95 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickStateGroup::stateChanged)) {-
96 *result = 0;-
97 return;-
98 }-
99 }-
100 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
101 switch (_id) {-
102 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
103 case 1:-
104 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlListProperty<QQuickState> >(); break;-
105 }-
106 }-
107-
108#ifndef QT_NO_PROPERTIES-
109 else if (_c == QMetaObject::ReadProperty) {-
110 QQuickStateGroup *_t = static_cast<QQuickStateGroup *>(_o);-
111 Q_UNUSED(_t)-
112 void *_v = _a[0];-
113 switch (_id) {-
114 case 0: *reinterpret_cast< QString*>(_v) = _t->state(); break;-
115 case 1: *reinterpret_cast< QQmlListProperty<QQuickState>*>(_v) = _t->statesProperty(); break;-
116 case 2: *reinterpret_cast< QQmlListProperty<QQuickTransition>*>(_v) = _t->transitionsProperty(); break;-
117 default: break;-
118 }-
119 } else if (_c == QMetaObject::WriteProperty) {-
120 QQuickStateGroup *_t = static_cast<QQuickStateGroup *>(_o);-
121 Q_UNUSED(_t)-
122 void *_v = _a[0];-
123 switch (_id) {-
124 case 0: _t->setState(*reinterpret_cast< QString*>(_v)); break;-
125 default: break;-
126 }-
127 } else if (_c == QMetaObject::ResetProperty) {-
128 }-
129#endif // QT_NO_PROPERTIES-
130}-
131-
132QT_INIT_METAOBJECT const QMetaObject QQuickStateGroup::staticMetaObject = {-
133 { &QObject::staticMetaObject, qt_meta_stringdata_QQuickStateGroup.data,-
134 qt_meta_data_QQuickStateGroup, qt_static_metacall, nullptr, nullptr}-
135};-
136-
137-
138const QMetaObject *QQuickStateGroup::metaObject() const-
139{-
140 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
141}-
142-
143void *QQuickStateGroup::qt_metacast(const char *_clname)-
144{-
145 if (!_clname) return nullptr;-
146 if (!strcmp(_clname, qt_meta_stringdata_QQuickStateGroup.stringdata0))-
147 return static_cast<void*>(this);-
148 if (!strcmp(_clname, "QQmlParserStatus"))-
149 return static_cast< QQmlParserStatus*>(this);-
150 if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))-
151 return static_cast< QQmlParserStatus*>(this);-
152 return QObject::qt_metacast(_clname);-
153}-
154-
155int QQuickStateGroup::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
156{-
157 _id = QObject::qt_metacall(_c, _id, _a);-
158 if (_id < 0)-
159 return _id;-
160 if (_c == QMetaObject::InvokeMetaMethod) {-
161 if (_id < 1)-
162 qt_static_metacall(this, _c, _id, _a);-
163 _id -= 1;-
164 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
165 if (_id < 1)-
166 *reinterpret_cast<int*>(_a[0]) = -1;-
167 _id -= 1;-
168 }-
169#ifndef QT_NO_PROPERTIES-
170 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
171 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
172 qt_static_metacall(this, _c, _id, _a);-
173 _id -= 3;-
174 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
175 _id -= 3;-
176 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
177 _id -= 3;-
178 } else if (_c == QMetaObject::QueryPropertyStored) {-
179 _id -= 3;-
180 } else if (_c == QMetaObject::QueryPropertyEditable) {-
181 _id -= 3;-
182 } else if (_c == QMetaObject::QueryPropertyUser) {-
183 _id -= 3;-
184 }-
185#endif // QT_NO_PROPERTIES-
186 return _id;-
187}-
188-
189// SIGNAL 0-
190void QQuickStateGroup::stateChanged(const QString & _t1)-
191{-
192 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };-
193 QMetaObject::activate(this, &staticMetaObject, 0, _a);-
194}
executed 588 times by 20 tests: end of block
Executed by:
  • tst_examples
  • tst_qqmlbinding
  • tst_qqmlecmascript
  • tst_qqmlenginedebugservice
  • tst_qqmllistreference
  • tst_qqmlnotifier
  • tst_qqmlproperty
  • tst_qqmltranslation
  • tst_qqmlvaluetypes
  • tst_qquickanimations
  • tst_qquickbehaviors
  • tst_qquickdesignersupport
  • tst_qquickflipable
  • tst_qquickfontloader
  • tst_qquickitem2
  • tst_qquicklistview
  • tst_qquickloader
  • tst_qquickmousearea
  • tst_qquickpathview
  • tst_qquickstates
588
195QT_WARNING_POP-
196QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0