OpenCoverage

moc_qquickdraghandler_p.cpp

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/quick/.moc/moc_qquickdraghandler_p.cpp
Source codeSwitch to Preprocessed file
LineSourceCount
1/****************************************************************************-
2** Meta object code from reading C++ file 'qquickdraghandler_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/qquickdraghandler_p.h"-
10#include <QtCore/qbytearray.h>-
11#include <QtCore/qmetatype.h>-
12#if !defined(Q_MOC_OUTPUT_REVISION)-
13#error "The header file 'qquickdraghandler_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_QQuickDragHandler_t {-
24 QByteArrayData data[8];-
25 char stringdata0[97];-
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_QQuickDragHandler_t, stringdata0) + ofs \-
30 - idx * sizeof(QByteArrayData)) \-
31 )-
32static const qt_meta_stringdata_QQuickDragHandler_t qt_meta_stringdata_QQuickDragHandler = {-
33 {-
34QT_MOC_LITERAL(0, 0, 17), // "QQuickDragHandler"-
35QT_MOC_LITERAL(1, 18, 18), // "translationChanged"-
36QT_MOC_LITERAL(2, 37, 0), // ""-
37QT_MOC_LITERAL(3, 38, 18), // "enforceConstraints"-
38QT_MOC_LITERAL(4, 57, 5), // "xAxis"-
39QT_MOC_LITERAL(5, 63, 15), // "QQuickDragAxis*"-
40QT_MOC_LITERAL(6, 79, 5), // "yAxis"-
41QT_MOC_LITERAL(7, 85, 11) // "translation"-
42-
43 },-
44 "QQuickDragHandler\0translationChanged\0"-
45 "\0enforceConstraints\0xAxis\0QQuickDragAxis*\0"-
46 "yAxis\0translation"-
47};-
48#undef QT_MOC_LITERAL-
49-
50static const uint qt_meta_data_QQuickDragHandler[] = {-
51-
52 // content:-
53 7, // revision-
54 0, // classname-
55 0, 0, // classinfo-
56 2, 14, // methods-
57 3, 26, // 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, 0, 24, 2, 0x06 /* Public */,-
65-
66 // methods: name, argc, parameters, tag, flags-
67 3, 0, 25, 2, 0x02 /* Public */,-
68-
69 // signals: parameters-
70 QMetaType::Void,-
71-
72 // methods: parameters-
73 QMetaType::Void,-
74-
75 // properties: name, type, flags-
76 4, 0x80000000 | 5, 0x00095409,-
77 6, 0x80000000 | 5, 0x00095409,-
78 7, QMetaType::QVector2D, 0x00495001,-
79-
80 // properties: notify_signal_id-
81 0,-
82 0,-
83 0,-
84-
85 0 // eod-
86};-
87-
88void QQuickDragHandler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)-
89{-
90 if (_c == QMetaObject::InvokeMetaMethod) {-
91 QQuickDragHandler *_t = static_cast<QQuickDragHandler *>(_o);-
92 Q_UNUSED(_t)-
93 switch (_id) {-
94 case 0: _t->translationChanged(); break;-
95 case 1: _t->enforceConstraints(); break;-
96 default: ;-
97 }-
98 } else if (_c == QMetaObject::IndexOfMethod) {-
99 int *result = reinterpret_cast<int *>(_a[0]);-
100 {-
101 using _t = void (QQuickDragHandler::*)();-
102 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickDragHandler::translationChanged)) {-
103 *result = 0;-
104 return;-
105 }-
106 }-
107 } else if (_c == QMetaObject::RegisterPropertyMetaType) {-
108 switch (_id) {-
109 default: *reinterpret_cast<int*>(_a[0]) = -1; break;-
110 case 1:-
111 case 0:-
112 *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickDragAxis* >(); break;-
113 }-
114 }-
115-
116#ifndef QT_NO_PROPERTIES-
117 else if (_c == QMetaObject::ReadProperty) {-
118 QQuickDragHandler *_t = static_cast<QQuickDragHandler *>(_o);-
119 Q_UNUSED(_t)-
120 void *_v = _a[0];-
121 switch (_id) {-
122 case 0: *reinterpret_cast< QQuickDragAxis**>(_v) = _t->xAxis(); break;-
123 case 1: *reinterpret_cast< QQuickDragAxis**>(_v) = _t->yAxis(); break;-
124 case 2: *reinterpret_cast< QVector2D*>(_v) = _t->translation(); break;-
125 default: break;-
126 }-
127 } else if (_c == QMetaObject::WriteProperty) {-
128 } else if (_c == QMetaObject::ResetProperty) {-
129 }-
130#endif // QT_NO_PROPERTIES-
131}-
132-
133QT_INIT_METAOBJECT const QMetaObject QQuickDragHandler::staticMetaObject = {-
134 { &QQuickSinglePointHandler::staticMetaObject, qt_meta_stringdata_QQuickDragHandler.data,-
135 qt_meta_data_QQuickDragHandler, qt_static_metacall, nullptr, nullptr}-
136};-
137-
138-
139const QMetaObject *QQuickDragHandler::metaObject() const-
140{-
141 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;-
142}-
143-
144void *QQuickDragHandler::qt_metacast(const char *_clname)-
145{-
146 if (!_clname) return nullptr;-
147 if (!strcmp(_clname, qt_meta_stringdata_QQuickDragHandler.stringdata0))-
148 return static_cast<void*>(this);-
149 return QQuickSinglePointHandler::qt_metacast(_clname);-
150}-
151-
152int QQuickDragHandler::qt_metacall(QMetaObject::Call _c, int _id, void **_a)-
153{-
154 _id = QQuickSinglePointHandler::qt_metacall(_c, _id, _a);-
155 if (_id < 0)-
156 return _id;-
157 if (_c == QMetaObject::InvokeMetaMethod) {-
158 if (_id < 2)-
159 qt_static_metacall(this, _c, _id, _a);-
160 _id -= 2;-
161 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {-
162 if (_id < 2)-
163 *reinterpret_cast<int*>(_a[0]) = -1;-
164 _id -= 2;-
165 }-
166#ifndef QT_NO_PROPERTIES-
167 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty-
168 || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {-
169 qt_static_metacall(this, _c, _id, _a);-
170 _id -= 3;-
171 } else if (_c == QMetaObject::QueryPropertyDesignable) {-
172 _id -= 3;-
173 } else if (_c == QMetaObject::QueryPropertyScriptable) {-
174 _id -= 3;-
175 } else if (_c == QMetaObject::QueryPropertyStored) {-
176 _id -= 3;-
177 } else if (_c == QMetaObject::QueryPropertyEditable) {-
178 _id -= 3;-
179 } else if (_c == QMetaObject::QueryPropertyUser) {-
180 _id -= 3;-
181 }-
182#endif // QT_NO_PROPERTIES-
183 return _id;-
184}-
185-
186// SIGNAL 0-
187void QQuickDragHandler::translationChanged()-
188{-
189 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);-
190}
executed 368 times by 3 tests: end of block
Executed by:
  • tst_flickableinterop
  • tst_multipointtoucharea_interop
  • tst_qquickdraghandler
368
191QT_WARNING_POP-
192QT_END_MOC_NAMESPACE-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.0