CuteLogger
Fast and simple logging solution for Qt based applications
moc_messagedialog.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'messagedialog.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.6.2)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/qmltypes/messagedialog.h"
10#include <QtCore/qmetatype.h>
11
12#if __has_include(<QtCore/qtmochelpers.h>)
13#include <QtCore/qtmochelpers.h>
14#else
15QT_BEGIN_MOC_NAMESPACE
16#endif
17
18
19#include <memory>
20
21#if !defined(Q_MOC_OUTPUT_REVISION)
22#error "The header file 'messagedialog.h' doesn't include <QObject>."
23#elif Q_MOC_OUTPUT_REVISION != 68
24#error "This file was generated using the moc from 6.6.2. It"
25#error "cannot be used with the include files from this version of Qt."
26#error "(The moc has changed too much.)"
27#endif
28
29#ifndef Q_CONSTINIT
30#define Q_CONSTINIT
31#endif
32
33QT_WARNING_PUSH
34QT_WARNING_DISABLE_DEPRECATED
35QT_WARNING_DISABLE_GCC("-Wuseless-cast")
36namespace {
37
38#ifdef QT_MOC_HAS_STRINGDATA
39struct qt_meta_stringdata_CLASSMessageDialogENDCLASS_t {};
40constexpr auto qt_meta_stringdata_CLASSMessageDialogENDCLASS = QtMocHelpers::stringData(
41 "MessageDialog",
42 "titleChanged",
43 "",
44 "title",
45 "textChanged",
46 "text",
47 "buttonsChanged",
48 "buttons",
49 "accepted",
50 "rejected",
51 "open",
52 "StandardButtons",
53 "Ok",
54 "Yes",
55 "No",
56 "Cancel"
57);
58#else // !QT_MOC_HAS_STRING_DATA
59struct qt_meta_stringdata_CLASSMessageDialogENDCLASS_t {
60 uint offsetsAndSizes[32];
61 char stringdata0[14];
62 char stringdata1[13];
63 char stringdata2[1];
64 char stringdata3[6];
65 char stringdata4[12];
66 char stringdata5[5];
67 char stringdata6[15];
68 char stringdata7[8];
69 char stringdata8[9];
70 char stringdata9[9];
71 char stringdata10[5];
72 char stringdata11[16];
73 char stringdata12[3];
74 char stringdata13[4];
75 char stringdata14[3];
76 char stringdata15[7];
77};
78#define QT_MOC_LITERAL(ofs, len) \
79 uint(sizeof(qt_meta_stringdata_CLASSMessageDialogENDCLASS_t::offsetsAndSizes) + ofs), len
80Q_CONSTINIT static const qt_meta_stringdata_CLASSMessageDialogENDCLASS_t qt_meta_stringdata_CLASSMessageDialogENDCLASS = {
81 {
82 QT_MOC_LITERAL(0, 13), // "MessageDialog"
83 QT_MOC_LITERAL(14, 12), // "titleChanged"
84 QT_MOC_LITERAL(27, 0), // ""
85 QT_MOC_LITERAL(28, 5), // "title"
86 QT_MOC_LITERAL(34, 11), // "textChanged"
87 QT_MOC_LITERAL(46, 4), // "text"
88 QT_MOC_LITERAL(51, 14), // "buttonsChanged"
89 QT_MOC_LITERAL(66, 7), // "buttons"
90 QT_MOC_LITERAL(74, 8), // "accepted"
91 QT_MOC_LITERAL(83, 8), // "rejected"
92 QT_MOC_LITERAL(92, 4), // "open"
93 QT_MOC_LITERAL(97, 15), // "StandardButtons"
94 QT_MOC_LITERAL(113, 2), // "Ok"
95 QT_MOC_LITERAL(116, 3), // "Yes"
96 QT_MOC_LITERAL(120, 2), // "No"
97 QT_MOC_LITERAL(123, 6) // "Cancel"
98 },
99 "MessageDialog",
100 "titleChanged",
101 "",
102 "title",
103 "textChanged",
104 "text",
105 "buttonsChanged",
106 "buttons",
107 "accepted",
108 "rejected",
109 "open",
110 "StandardButtons",
111 "Ok",
112 "Yes",
113 "No",
114 "Cancel"
115};
116#undef QT_MOC_LITERAL
117#endif // !QT_MOC_HAS_STRING_DATA
118} // unnamed namespace
119
120Q_CONSTINIT static const uint qt_meta_data_CLASSMessageDialogENDCLASS[] = {
121
122 // content:
123 12, // revision
124 0, // classname
125 0, 0, // classinfo
126 6, 14, // methods
127 3, 62, // properties
128 1, 77, // enums/sets
129 0, 0, // constructors
130 0, // flags
131 5, // signalCount
132
133 // signals: name, argc, parameters, tag, flags, initial metatype offsets
134 1, 1, 50, 2, 0x06, 5 /* Public */,
135 4, 1, 53, 2, 0x06, 7 /* Public */,
136 6, 1, 56, 2, 0x06, 9 /* Public */,
137 8, 0, 59, 2, 0x06, 11 /* Public */,
138 9, 0, 60, 2, 0x06, 12 /* Public */,
139
140 // methods: name, argc, parameters, tag, flags, initial metatype offsets
141 10, 0, 61, 2, 0x02, 13 /* Public */,
142
143 // signals: parameters
144 QMetaType::Void, QMetaType::QString, 3,
145 QMetaType::Void, QMetaType::QString, 5,
146 QMetaType::Void, QMetaType::Int, 7,
147 QMetaType::Void,
148 QMetaType::Void,
149
150 // methods: parameters
151 QMetaType::Void,
152
153 // properties: name, type, flags
154 3, QMetaType::QString, 0x00015103, uint(0), 0,
155 5, QMetaType::QString, 0x00015103, uint(1), 0,
156 7, QMetaType::Int, 0x00015103, uint(2), 0,
157
158 // enums: name, alias, flags, count, data
159 11, 11, 0x0, 4, 82,
160
161 // enum data: key, value
162 12, uint(MessageDialog::Ok),
163 13, uint(MessageDialog::Yes),
164 14, uint(MessageDialog::No),
165 15, uint(MessageDialog::Cancel),
166
167 0 // eod
168};
169
170Q_CONSTINIT const QMetaObject MessageDialog::staticMetaObject = { {
171 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
172 qt_meta_stringdata_CLASSMessageDialogENDCLASS.offsetsAndSizes,
173 qt_meta_data_CLASSMessageDialogENDCLASS,
174 qt_static_metacall,
175 nullptr,
176 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSMessageDialogENDCLASS_t,
177 // property 'title'
178 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
179 // property 'text'
180 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
181 // property 'buttons'
182 QtPrivate::TypeAndForceComplete<int, std::true_type>,
183 // enum 'StandardButtons'
184 QtPrivate::TypeAndForceComplete<MessageDialog::StandardButtons, std::true_type>,
185 // Q_OBJECT / Q_GADGET
186 QtPrivate::TypeAndForceComplete<MessageDialog, std::true_type>,
187 // method 'titleChanged'
188 QtPrivate::TypeAndForceComplete<void, std::false_type>,
189 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
190 // method 'textChanged'
191 QtPrivate::TypeAndForceComplete<void, std::false_type>,
192 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
193 // method 'buttonsChanged'
194 QtPrivate::TypeAndForceComplete<void, std::false_type>,
195 QtPrivate::TypeAndForceComplete<int, std::false_type>,
196 // method 'accepted'
197 QtPrivate::TypeAndForceComplete<void, std::false_type>,
198 // method 'rejected'
199 QtPrivate::TypeAndForceComplete<void, std::false_type>,
200 // method 'open'
201 QtPrivate::TypeAndForceComplete<void, std::false_type>
202 >,
203 nullptr
204} };
205
206void MessageDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
207{
208 if (_c == QMetaObject::InvokeMetaMethod) {
209 auto *_t = static_cast<MessageDialog *>(_o);
210 (void)_t;
211 switch (_id) {
212 case 0: _t->titleChanged((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
213 case 1: _t->textChanged((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
214 case 2: _t->buttonsChanged((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
215 case 3: _t->accepted(); break;
216 case 4: _t->rejected(); break;
217 case 5: _t->open(); break;
218 default: ;
219 }
220 } else if (_c == QMetaObject::IndexOfMethod) {
221 int *result = reinterpret_cast<int *>(_a[0]);
222 {
223 using _t = void (MessageDialog::*)(const QString & );
224 if (_t _q_method = &MessageDialog::titleChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
225 *result = 0;
226 return;
227 }
228 }
229 {
230 using _t = void (MessageDialog::*)(const QString & );
231 if (_t _q_method = &MessageDialog::textChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
232 *result = 1;
233 return;
234 }
235 }
236 {
237 using _t = void (MessageDialog::*)(int );
238 if (_t _q_method = &MessageDialog::buttonsChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
239 *result = 2;
240 return;
241 }
242 }
243 {
244 using _t = void (MessageDialog::*)();
245 if (_t _q_method = &MessageDialog::accepted; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
246 *result = 3;
247 return;
248 }
249 }
250 {
251 using _t = void (MessageDialog::*)();
252 if (_t _q_method = &MessageDialog::rejected; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
253 *result = 4;
254 return;
255 }
256 }
257 } else if (_c == QMetaObject::ReadProperty) {
258 auto *_t = static_cast<MessageDialog *>(_o);
259 (void)_t;
260 void *_v = _a[0];
261 switch (_id) {
262 case 0: *reinterpret_cast< QString*>(_v) = _t->title(); break;
263 case 1: *reinterpret_cast< QString*>(_v) = _t->text(); break;
264 case 2: *reinterpret_cast< int*>(_v) = _t->buttons(); break;
265 default: break;
266 }
267 } else if (_c == QMetaObject::WriteProperty) {
268 auto *_t = static_cast<MessageDialog *>(_o);
269 (void)_t;
270 void *_v = _a[0];
271 switch (_id) {
272 case 0: _t->setTitle(*reinterpret_cast< QString*>(_v)); break;
273 case 1: _t->setText(*reinterpret_cast< QString*>(_v)); break;
274 case 2: _t->setButtons(*reinterpret_cast< int*>(_v)); break;
275 default: break;
276 }
277 } else if (_c == QMetaObject::ResetProperty) {
278 } else if (_c == QMetaObject::BindableProperty) {
279 }
280}
281
282const QMetaObject *MessageDialog::metaObject() const
283{
284 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
285}
286
287void *MessageDialog::qt_metacast(const char *_clname)
288{
289 if (!_clname) return nullptr;
290 if (!strcmp(_clname, qt_meta_stringdata_CLASSMessageDialogENDCLASS.stringdata0))
291 return static_cast<void*>(this);
292 return QObject::qt_metacast(_clname);
293}
294
295int MessageDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
296{
297 _id = QObject::qt_metacall(_c, _id, _a);
298 if (_id < 0)
299 return _id;
300 if (_c == QMetaObject::InvokeMetaMethod) {
301 if (_id < 6)
302 qt_static_metacall(this, _c, _id, _a);
303 _id -= 6;
304 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
305 if (_id < 6)
306 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
307 _id -= 6;
308 }else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
309 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
310 || _c == QMetaObject::RegisterPropertyMetaType) {
311 qt_static_metacall(this, _c, _id, _a);
312 _id -= 3;
313 }
314 return _id;
315}
316
317// SIGNAL 0
318void MessageDialog::titleChanged(const QString & _t1)
319{
320 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
321 QMetaObject::activate(this, &staticMetaObject, 0, _a);
322}
323
324// SIGNAL 1
325void MessageDialog::textChanged(const QString & _t1)
326{
327 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
328 QMetaObject::activate(this, &staticMetaObject, 1, _a);
329}
330
331// SIGNAL 2
332void MessageDialog::buttonsChanged(int _t1)
333{
334 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
335 QMetaObject::activate(this, &staticMetaObject, 2, _a);
336}
337
338// SIGNAL 3
339void MessageDialog::accepted()
340{
341 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
342}
343
344// SIGNAL 4
345void MessageDialog::rejected()
346{
347 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
348}
349QT_WARNING_POP