1/****************************************************************************
2** Meta object code from reading C++ file 'qdial.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 "widgets/qdial.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qdial.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_QDial_t {
25 const uint offsetsAndSize[20];
26 char stringdata0[94];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QDial_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QDial_t qt_meta_stringdata_QDial = {
31 {
32QT_MOC_LITERAL(0, 5), // "QDial"
33QT_MOC_LITERAL(6, 17), // "setNotchesVisible"
34QT_MOC_LITERAL(24, 0), // ""
35QT_MOC_LITERAL(25, 7), // "visible"
36QT_MOC_LITERAL(33, 11), // "setWrapping"
37QT_MOC_LITERAL(45, 2), // "on"
38QT_MOC_LITERAL(48, 8), // "wrapping"
39QT_MOC_LITERAL(57, 9), // "notchSize"
40QT_MOC_LITERAL(67, 11), // "notchTarget"
41QT_MOC_LITERAL(79, 14) // "notchesVisible"
42
43 },
44 "QDial\0setNotchesVisible\0\0visible\0"
45 "setWrapping\0on\0wrapping\0notchSize\0"
46 "notchTarget\0notchesVisible"
47};
48#undef QT_MOC_LITERAL
49
50static const uint qt_meta_data_QDial[] = {
51
52 // content:
53 9, // revision
54 0, // classname
55 0, 0, // classinfo
56 2, 14, // methods
57 4, 32, // properties
58 0, 0, // enums/sets
59 0, 0, // constructors
60 0, // flags
61 0, // signalCount
62
63 // slots: name, argc, parameters, tag, flags, initial metatype offsets
64 1, 1, 26, 2, 0x0a, 4 /* Public */,
65 4, 1, 29, 2, 0x0a, 6 /* Public */,
66
67 // slots: parameters
68 QMetaType::Void, QMetaType::Bool, 3,
69 QMetaType::Void, QMetaType::Bool, 5,
70
71 // properties: name, type, flags
72 6, QMetaType::Bool, 0x00015103, uint(-1), 0,
73 7, QMetaType::Int, 0x00015001, uint(-1), 0,
74 8, QMetaType::QReal, 0x00015103, uint(-1), 0,
75 9, QMetaType::Bool, 0x00015103, uint(-1), 0,
76
77 0 // eod
78};
79
80void QDial::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
81{
82 if (_c == QMetaObject::InvokeMetaMethod) {
83 Q_ASSERT(staticMetaObject.cast(_o));
84 auto *_t = static_cast<QDial *>(_o);
85 Q_UNUSED(_t)
86 switch (_id) {
87 case 0: _t->setNotchesVisible((*reinterpret_cast< bool(*)>(_a[1]))); break;
88 case 1: _t->setWrapping((*reinterpret_cast< bool(*)>(_a[1]))); break;
89 default: ;
90 }
91 }
92#ifndef QT_NO_PROPERTIES
93 else if (_c == QMetaObject::ReadProperty) {
94 Q_ASSERT(staticMetaObject.cast(_o));
95 auto *_t = static_cast<QDial *>(_o);
96 Q_UNUSED(_t)
97 void *_v = _a[0];
98 switch (_id) {
99 case 0: *reinterpret_cast< bool*>(_v) = _t->wrapping(); break;
100 case 1: *reinterpret_cast< int*>(_v) = _t->notchSize(); break;
101 case 2: *reinterpret_cast< qreal*>(_v) = _t->notchTarget(); break;
102 case 3: *reinterpret_cast< bool*>(_v) = _t->notchesVisible(); break;
103 default: break;
104 }
105 } else if (_c == QMetaObject::WriteProperty) {
106 Q_ASSERT(staticMetaObject.cast(_o));
107 auto *_t = static_cast<QDial *>(_o);
108 Q_UNUSED(_t)
109 void *_v = _a[0];
110 switch (_id) {
111 case 0: _t->setWrapping(*reinterpret_cast< bool*>(_v)); break;
112 case 2: _t->setNotchTarget(*reinterpret_cast< qreal*>(_v)); break;
113 case 3: _t->setNotchesVisible(*reinterpret_cast< bool*>(_v)); break;
114 default: break;
115 }
116 } else if (_c == QMetaObject::ResetProperty) {
117 } else if (_c == QMetaObject::BindableProperty) {
118 }
119#endif // QT_NO_PROPERTIES
120}
121
122const QMetaObject QDial::staticMetaObject = { {
123 QMetaObject::SuperData::link<QAbstractSlider::staticMetaObject>(),
124 qt_meta_stringdata_QDial.offsetsAndSize,
125 qt_meta_data_QDial,
126 qt_static_metacall,
127 nullptr,
128qt_incomplete_metaTypeArray<qt_meta_stringdata_QDial_t
129, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<qreal, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>
130, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>
131
132
133>,
134 nullptr
135} };
136
137
138const QMetaObject *QDial::metaObject() const
139{
140 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
141}
142
143void *QDial::qt_metacast(const char *_clname)
144{
145 if (!_clname) return nullptr;
146 if (!strcmp(_clname, qt_meta_stringdata_QDial.stringdata0))
147 return static_cast<void*>(this);
148 return QAbstractSlider::qt_metacast(_clname);
149}
150
151int QDial::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
152{
153 _id = QAbstractSlider::qt_metacall(_c, _id, _a);
154 if (_id < 0)
155 return _id;
156 if (_c == QMetaObject::InvokeMetaMethod) {
157 if (_id < 2)
158 qt_static_metacall(this, _c, _id, _a);
159 _id -= 2;
160 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
161 if (_id < 2)
162 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
163 _id -= 2;
164 }
165#ifndef QT_NO_PROPERTIES
166 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
167 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
168 || _c == QMetaObject::RegisterPropertyMetaType) {
169 qt_static_metacall(this, _c, _id, _a);
170 _id -= 4;
171 }
172#endif // QT_NO_PROPERTIES
173 return _id;
174}
175QT_WARNING_POP
176QT_END_MOC_NAMESPACE
177