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