OpenCoverage

moc_qquickdragaxis_p.cpp

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

Generated by Squish Coco 4.2.0