1/****************************************************************************
2** Meta object code from reading C++ file 'qscroller.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include <memory>
10#include "util/qscroller.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qscroller.h' doesn't include <QObject>."
15#elif Q_MOC_OUTPUT_REVISION != 68
16#error "This file was generated using the moc from 6.0.0. It"
17#error "cannot be used with the include files from this version of Qt."
18#error "(The moc has changed too much.)"
19#endif
20
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_QScroller_t {
25 const uint offsetsAndSize[48];
26 char stringdata0[268];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QScroller_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QScroller_t qt_meta_stringdata_QScroller = {
31 {
32QT_MOC_LITERAL(0, 9), // "QScroller"
33QT_MOC_LITERAL(10, 12), // "stateChanged"
34QT_MOC_LITERAL(23, 0), // ""
35QT_MOC_LITERAL(24, 16), // "QScroller::State"
36QT_MOC_LITERAL(41, 8), // "newstate"
37QT_MOC_LITERAL(50, 25), // "scrollerPropertiesChanged"
38QT_MOC_LITERAL(76, 19), // "QScrollerProperties"
39QT_MOC_LITERAL(96, 21), // "setScrollerProperties"
40QT_MOC_LITERAL(118, 4), // "prop"
41QT_MOC_LITERAL(123, 8), // "scrollTo"
42QT_MOC_LITERAL(132, 3), // "pos"
43QT_MOC_LITERAL(136, 10), // "scrollTime"
44QT_MOC_LITERAL(147, 13), // "ensureVisible"
45QT_MOC_LITERAL(161, 4), // "rect"
46QT_MOC_LITERAL(166, 7), // "xmargin"
47QT_MOC_LITERAL(174, 7), // "ymargin"
48QT_MOC_LITERAL(182, 18), // "resendPrepareEvent"
49QT_MOC_LITERAL(201, 5), // "state"
50QT_MOC_LITERAL(207, 5), // "State"
51QT_MOC_LITERAL(213, 18), // "scrollerProperties"
52QT_MOC_LITERAL(232, 8), // "Inactive"
53QT_MOC_LITERAL(241, 7), // "Pressed"
54QT_MOC_LITERAL(249, 8), // "Dragging"
55QT_MOC_LITERAL(258, 9) // "Scrolling"
56
57 },
58 "QScroller\0stateChanged\0\0QScroller::State\0"
59 "newstate\0scrollerPropertiesChanged\0"
60 "QScrollerProperties\0setScrollerProperties\0"
61 "prop\0scrollTo\0pos\0scrollTime\0ensureVisible\0"
62 "rect\0xmargin\0ymargin\0resendPrepareEvent\0"
63 "state\0State\0scrollerProperties\0Inactive\0"
64 "Pressed\0Dragging\0Scrolling"
65};
66#undef QT_MOC_LITERAL
67
68static const uint qt_meta_data_QScroller[] = {
69
70 // content:
71 9, // revision
72 0, // classname
73 0, 0, // classinfo
74 8, 14, // methods
75 2, 96, // properties
76 1, 106, // enums/sets
77 0, 0, // constructors
78 0, // flags
79 2, // signalCount
80
81 // signals: name, argc, parameters, tag, flags, initial metatype offsets
82 1, 1, 62, 2, 0x06, 2 /* Public */,
83 5, 1, 65, 2, 0x06, 4 /* Public */,
84
85 // slots: name, argc, parameters, tag, flags, initial metatype offsets
86 7, 1, 68, 2, 0x0a, 6 /* Public */,
87 9, 1, 71, 2, 0x0a, 8 /* Public */,
88 9, 2, 74, 2, 0x0a, 10 /* Public */,
89 12, 3, 79, 2, 0x0a, 13 /* Public */,
90 12, 4, 86, 2, 0x0a, 17 /* Public */,
91 16, 0, 95, 2, 0x0a, 22 /* Public */,
92
93 // signals: parameters
94 QMetaType::Void, 0x80000000 | 3, 4,
95 QMetaType::Void, 0x80000000 | 6, 2,
96
97 // slots: parameters
98 QMetaType::Void, 0x80000000 | 6, 8,
99 QMetaType::Void, QMetaType::QPointF, 10,
100 QMetaType::Void, QMetaType::QPointF, QMetaType::Int, 10, 11,
101 QMetaType::Void, QMetaType::QRectF, QMetaType::QReal, QMetaType::QReal, 13, 14, 15,
102 QMetaType::Void, QMetaType::QRectF, QMetaType::QReal, QMetaType::QReal, QMetaType::Int, 13, 14, 15, 11,
103 QMetaType::Void,
104
105 // properties: name, type, flags
106 17, 0x80000000 | 18, 0x00015009, uint(0), 0,
107 19, 0x80000000 | 6, 0x0001510b, uint(1), 0,
108
109 // enums: name, alias, flags, count, data
110 18, 18, 0x0, 4, 111,
111
112 // enum data: key, value
113 20, uint(QScroller::Inactive),
114 21, uint(QScroller::Pressed),
115 22, uint(QScroller::Dragging),
116 23, uint(QScroller::Scrolling),
117
118 0 // eod
119};
120
121void QScroller::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
122{
123 if (_c == QMetaObject::InvokeMetaMethod) {
124 Q_ASSERT(staticMetaObject.cast(_o));
125 auto *_t = static_cast<QScroller *>(_o);
126 Q_UNUSED(_t)
127 switch (_id) {
128 case 0: _t->stateChanged((*reinterpret_cast< QScroller::State(*)>(_a[1]))); break;
129 case 1: _t->scrollerPropertiesChanged((*reinterpret_cast< const QScrollerProperties(*)>(_a[1]))); break;
130 case 2: _t->setScrollerProperties((*reinterpret_cast< const QScrollerProperties(*)>(_a[1]))); break;
131 case 3: _t->scrollTo((*reinterpret_cast< const QPointF(*)>(_a[1]))); break;
132 case 4: _t->scrollTo((*reinterpret_cast< const QPointF(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
133 case 5: _t->ensureVisible((*reinterpret_cast< const QRectF(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2])),(*reinterpret_cast< qreal(*)>(_a[3]))); break;
134 case 6: _t->ensureVisible((*reinterpret_cast< const QRectF(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2])),(*reinterpret_cast< qreal(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
135 case 7: _t->resendPrepareEvent(); break;
136 default: ;
137 }
138 } else if (_c == QMetaObject::IndexOfMethod) {
139 int *result = reinterpret_cast<int *>(_a[0]);
140 {
141 using _t = void (QScroller::*)(QScroller::State );
142 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QScroller::stateChanged)) {
143 *result = 0;
144 return;
145 }
146 }
147 {
148 using _t = void (QScroller::*)(const QScrollerProperties & );
149 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QScroller::scrollerPropertiesChanged)) {
150 *result = 1;
151 return;
152 }
153 }
154 }
155#ifndef QT_NO_PROPERTIES
156 else if (_c == QMetaObject::ReadProperty) {
157 Q_ASSERT(staticMetaObject.cast(_o));
158 auto *_t = static_cast<QScroller *>(_o);
159 Q_UNUSED(_t)
160 void *_v = _a[0];
161 switch (_id) {
162 case 0: *reinterpret_cast< State*>(_v) = _t->state(); break;
163 case 1: *reinterpret_cast< QScrollerProperties*>(_v) = _t->scrollerProperties(); break;
164 default: break;
165 }
166 } else if (_c == QMetaObject::WriteProperty) {
167 Q_ASSERT(staticMetaObject.cast(_o));
168 auto *_t = static_cast<QScroller *>(_o);
169 Q_UNUSED(_t)
170 void *_v = _a[0];
171 switch (_id) {
172 case 1: _t->setScrollerProperties(*reinterpret_cast< QScrollerProperties*>(_v)); break;
173 default: break;
174 }
175 } else if (_c == QMetaObject::ResetProperty) {
176 } else if (_c == QMetaObject::BindableProperty) {
177 }
178#endif // QT_NO_PROPERTIES
179}
180
181const QMetaObject QScroller::staticMetaObject = { {
182 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
183 qt_meta_stringdata_QScroller.offsetsAndSize,
184 qt_meta_data_QScroller,
185 qt_static_metacall,
186 nullptr,
187qt_incomplete_metaTypeArray<qt_meta_stringdata_QScroller_t
188, QtPrivate::TypeAndForceComplete<State, std::true_type>, QtPrivate::TypeAndForceComplete<QScrollerProperties, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QScroller::State, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QScrollerProperties &, std::false_type>
189, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QScrollerProperties &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QPointF &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QPointF &, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRectF &, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QRectF &, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>, QtPrivate::TypeAndForceComplete<qreal, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
190
191
192>,
193 nullptr
194} };
195
196
197const QMetaObject *QScroller::metaObject() const
198{
199 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
200}
201
202void *QScroller::qt_metacast(const char *_clname)
203{
204 if (!_clname) return nullptr;
205 if (!strcmp(_clname, qt_meta_stringdata_QScroller.stringdata0))
206 return static_cast<void*>(this);
207 return QObject::qt_metacast(_clname);
208}
209
210int QScroller::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
211{
212 _id = QObject::qt_metacall(_c, _id, _a);
213 if (_id < 0)
214 return _id;
215 if (_c == QMetaObject::InvokeMetaMethod) {
216 if (_id < 8)
217 qt_static_metacall(this, _c, _id, _a);
218 _id -= 8;
219 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
220 if (_id < 8)
221 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
222 _id -= 8;
223 }
224#ifndef QT_NO_PROPERTIES
225 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
226 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
227 || _c == QMetaObject::RegisterPropertyMetaType) {
228 qt_static_metacall(this, _c, _id, _a);
229 _id -= 2;
230 }
231#endif // QT_NO_PROPERTIES
232 return _id;
233}
234
235// SIGNAL 0
236void QScroller::stateChanged(QScroller::State _t1)
237{
238 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
239 QMetaObject::activate(this, &staticMetaObject, 0, _a);
240}
241
242// SIGNAL 1
243void QScroller::scrollerPropertiesChanged(const QScrollerProperties & _t1)
244{
245 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
246 QMetaObject::activate(this, &staticMetaObject, 1, _a);
247}
248QT_WARNING_POP
249QT_END_MOC_NAMESPACE
250