1/****************************************************************************
2** Meta object code from reading C++ file 'qabstractbutton.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/qabstractbutton.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qabstractbutton.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_QAbstractButton_t {
25 const uint offsetsAndSize[48];
26 char stringdata0[228];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QAbstractButton_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QAbstractButton_t qt_meta_stringdata_QAbstractButton = {
31 {
32QT_MOC_LITERAL(0, 15), // "QAbstractButton"
33QT_MOC_LITERAL(16, 7), // "pressed"
34QT_MOC_LITERAL(24, 0), // ""
35QT_MOC_LITERAL(25, 8), // "released"
36QT_MOC_LITERAL(34, 7), // "clicked"
37QT_MOC_LITERAL(42, 7), // "checked"
38QT_MOC_LITERAL(50, 7), // "toggled"
39QT_MOC_LITERAL(58, 11), // "setIconSize"
40QT_MOC_LITERAL(70, 4), // "size"
41QT_MOC_LITERAL(75, 12), // "animateClick"
42QT_MOC_LITERAL(88, 5), // "click"
43QT_MOC_LITERAL(94, 6), // "toggle"
44QT_MOC_LITERAL(101, 10), // "setChecked"
45QT_MOC_LITERAL(112, 4), // "text"
46QT_MOC_LITERAL(117, 4), // "icon"
47QT_MOC_LITERAL(122, 8), // "iconSize"
48QT_MOC_LITERAL(131, 8), // "shortcut"
49QT_MOC_LITERAL(140, 12), // "QKeySequence"
50QT_MOC_LITERAL(153, 9), // "checkable"
51QT_MOC_LITERAL(163, 10), // "autoRepeat"
52QT_MOC_LITERAL(174, 13), // "autoExclusive"
53QT_MOC_LITERAL(188, 15), // "autoRepeatDelay"
54QT_MOC_LITERAL(204, 18), // "autoRepeatInterval"
55QT_MOC_LITERAL(223, 4) // "down"
56
57 },
58 "QAbstractButton\0pressed\0\0released\0"
59 "clicked\0checked\0toggled\0setIconSize\0"
60 "size\0animateClick\0click\0toggle\0"
61 "setChecked\0text\0icon\0iconSize\0shortcut\0"
62 "QKeySequence\0checkable\0autoRepeat\0"
63 "autoExclusive\0autoRepeatDelay\0"
64 "autoRepeatInterval\0down"
65};
66#undef QT_MOC_LITERAL
67
68static const uint qt_meta_data_QAbstractButton[] = {
69
70 // content:
71 9, // revision
72 0, // classname
73 0, 0, // classinfo
74 10, 14, // methods
75 11, 92, // properties
76 0, 0, // enums/sets
77 0, 0, // constructors
78 0, // flags
79 5, // signalCount
80
81 // signals: name, argc, parameters, tag, flags, initial metatype offsets
82 1, 0, 74, 2, 0x06, 11 /* Public */,
83 3, 0, 75, 2, 0x06, 12 /* Public */,
84 4, 1, 76, 2, 0x06, 13 /* Public */,
85 4, 0, 79, 2, 0x26, 15 /* Public | MethodCloned */,
86 6, 1, 80, 2, 0x06, 16 /* Public */,
87
88 // slots: name, argc, parameters, tag, flags, initial metatype offsets
89 7, 1, 83, 2, 0x0a, 18 /* Public */,
90 9, 0, 86, 2, 0x0a, 20 /* Public */,
91 10, 0, 87, 2, 0x0a, 21 /* Public */,
92 11, 0, 88, 2, 0x0a, 22 /* Public */,
93 12, 1, 89, 2, 0x0a, 23 /* Public */,
94
95 // signals: parameters
96 QMetaType::Void,
97 QMetaType::Void,
98 QMetaType::Void, QMetaType::Bool, 5,
99 QMetaType::Void,
100 QMetaType::Void, QMetaType::Bool, 5,
101
102 // slots: parameters
103 QMetaType::Void, QMetaType::QSize, 8,
104 QMetaType::Void,
105 QMetaType::Void,
106 QMetaType::Void,
107 QMetaType::Void, QMetaType::Bool, 2,
108
109 // properties: name, type, flags
110 13, QMetaType::QString, 0x00015103, uint(-1), 0,
111 14, QMetaType::QIcon, 0x00015103, uint(-1), 0,
112 15, QMetaType::QSize, 0x00015103, uint(-1), 0,
113 16, 0x80000000 | 17, 0x0001510b, uint(-1), 0,
114 18, QMetaType::Bool, 0x00015103, uint(-1), 0,
115 5, QMetaType::Bool, 0x00115103, uint(4), 0,
116 19, QMetaType::Bool, 0x00015103, uint(-1), 0,
117 20, QMetaType::Bool, 0x00015103, uint(-1), 0,
118 21, QMetaType::Int, 0x00015103, uint(-1), 0,
119 22, QMetaType::Int, 0x00015103, uint(-1), 0,
120 23, QMetaType::Bool, 0x00014103, uint(-1), 0,
121
122 0 // eod
123};
124
125void QAbstractButton::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
126{
127 if (_c == QMetaObject::InvokeMetaMethod) {
128 Q_ASSERT(staticMetaObject.cast(_o));
129 auto *_t = static_cast<QAbstractButton *>(_o);
130 Q_UNUSED(_t)
131 switch (_id) {
132 case 0: _t->pressed(); break;
133 case 1: _t->released(); break;
134 case 2: _t->clicked((*reinterpret_cast< bool(*)>(_a[1]))); break;
135 case 3: _t->clicked(); break;
136 case 4: _t->toggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
137 case 5: _t->setIconSize((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
138 case 6: _t->animateClick(); break;
139 case 7: _t->click(); break;
140 case 8: _t->toggle(); break;
141 case 9: _t->setChecked((*reinterpret_cast< bool(*)>(_a[1]))); break;
142 default: ;
143 }
144 } else if (_c == QMetaObject::IndexOfMethod) {
145 int *result = reinterpret_cast<int *>(_a[0]);
146 {
147 using _t = void (QAbstractButton::*)();
148 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractButton::pressed)) {
149 *result = 0;
150 return;
151 }
152 }
153 {
154 using _t = void (QAbstractButton::*)();
155 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractButton::released)) {
156 *result = 1;
157 return;
158 }
159 }
160 {
161 using _t = void (QAbstractButton::*)(bool );
162 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractButton::clicked)) {
163 *result = 2;
164 return;
165 }
166 }
167 {
168 using _t = void (QAbstractButton::*)(bool );
169 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractButton::toggled)) {
170 *result = 4;
171 return;
172 }
173 }
174 }
175#ifndef QT_NO_PROPERTIES
176 else if (_c == QMetaObject::ReadProperty) {
177 Q_ASSERT(staticMetaObject.cast(_o));
178 auto *_t = static_cast<QAbstractButton *>(_o);
179 Q_UNUSED(_t)
180 void *_v = _a[0];
181 switch (_id) {
182 case 0: *reinterpret_cast< QString*>(_v) = _t->text(); break;
183 case 1: *reinterpret_cast< QIcon*>(_v) = _t->icon(); break;
184 case 2: *reinterpret_cast< QSize*>(_v) = _t->iconSize(); break;
185 case 3: *reinterpret_cast< QKeySequence*>(_v) = _t->shortcut(); break;
186 case 4: *reinterpret_cast< bool*>(_v) = _t->isCheckable(); break;
187 case 5: *reinterpret_cast< bool*>(_v) = _t->isChecked(); break;
188 case 6: *reinterpret_cast< bool*>(_v) = _t->autoRepeat(); break;
189 case 7: *reinterpret_cast< bool*>(_v) = _t->autoExclusive(); break;
190 case 8: *reinterpret_cast< int*>(_v) = _t->autoRepeatDelay(); break;
191 case 9: *reinterpret_cast< int*>(_v) = _t->autoRepeatInterval(); break;
192 case 10: *reinterpret_cast< bool*>(_v) = _t->isDown(); break;
193 default: break;
194 }
195 } else if (_c == QMetaObject::WriteProperty) {
196 Q_ASSERT(staticMetaObject.cast(_o));
197 auto *_t = static_cast<QAbstractButton *>(_o);
198 Q_UNUSED(_t)
199 void *_v = _a[0];
200 switch (_id) {
201 case 0: _t->setText(*reinterpret_cast< QString*>(_v)); break;
202 case 1: _t->setIcon(*reinterpret_cast< QIcon*>(_v)); break;
203 case 2: _t->setIconSize(*reinterpret_cast< QSize*>(_v)); break;
204 case 3: _t->setShortcut(*reinterpret_cast< QKeySequence*>(_v)); break;
205 case 4: _t->setCheckable(*reinterpret_cast< bool*>(_v)); break;
206 case 5: _t->setChecked(*reinterpret_cast< bool*>(_v)); break;
207 case 6: _t->setAutoRepeat(*reinterpret_cast< bool*>(_v)); break;
208 case 7: _t->setAutoExclusive(*reinterpret_cast< bool*>(_v)); break;
209 case 8: _t->setAutoRepeatDelay(*reinterpret_cast< int*>(_v)); break;
210 case 9: _t->setAutoRepeatInterval(*reinterpret_cast< int*>(_v)); break;
211 case 10: _t->setDown(*reinterpret_cast< bool*>(_v)); break;
212 default: break;
213 }
214 } else if (_c == QMetaObject::ResetProperty) {
215 } else if (_c == QMetaObject::BindableProperty) {
216 }
217#endif // QT_NO_PROPERTIES
218}
219
220const QMetaObject QAbstractButton::staticMetaObject = { {
221 QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
222 qt_meta_stringdata_QAbstractButton.offsetsAndSize,
223 qt_meta_data_QAbstractButton,
224 qt_static_metacall,
225 nullptr,
226qt_incomplete_metaTypeArray<qt_meta_stringdata_QAbstractButton_t
227, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QIcon, std::true_type>, QtPrivate::TypeAndForceComplete<QSize, std::true_type>, QtPrivate::TypeAndForceComplete<QKeySequence, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>
228, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QSize &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>
229
230
231>,
232 nullptr
233} };
234
235
236const QMetaObject *QAbstractButton::metaObject() const
237{
238 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
239}
240
241void *QAbstractButton::qt_metacast(const char *_clname)
242{
243 if (!_clname) return nullptr;
244 if (!strcmp(_clname, qt_meta_stringdata_QAbstractButton.stringdata0))
245 return static_cast<void*>(this);
246 return QWidget::qt_metacast(_clname);
247}
248
249int QAbstractButton::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
250{
251 _id = QWidget::qt_metacall(_c, _id, _a);
252 if (_id < 0)
253 return _id;
254 if (_c == QMetaObject::InvokeMetaMethod) {
255 if (_id < 10)
256 qt_static_metacall(this, _c, _id, _a);
257 _id -= 10;
258 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
259 if (_id < 10)
260 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
261 _id -= 10;
262 }
263#ifndef QT_NO_PROPERTIES
264 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
265 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
266 || _c == QMetaObject::RegisterPropertyMetaType) {
267 qt_static_metacall(this, _c, _id, _a);
268 _id -= 11;
269 }
270#endif // QT_NO_PROPERTIES
271 return _id;
272}
273
274// SIGNAL 0
275void QAbstractButton::pressed()
276{
277 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
278}
279
280// SIGNAL 1
281void QAbstractButton::released()
282{
283 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
284}
285
286// SIGNAL 2
287void QAbstractButton::clicked(bool _t1)
288{
289 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
290 QMetaObject::activate(this, &staticMetaObject, 2, _a);
291}
292
293// SIGNAL 4
294void QAbstractButton::toggled(bool _t1)
295{
296 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
297 QMetaObject::activate(this, &staticMetaObject, 4, _a);
298}
299QT_WARNING_POP
300QT_END_MOC_NAMESPACE
301