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