1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qdialog.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/qdialog.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qdialog.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 | |
21 | QT_BEGIN_MOC_NAMESPACE |
22 | QT_WARNING_PUSH |
23 | QT_WARNING_DISABLE_DEPRECATED |
24 | struct qt_meta_stringdata_QDialog_t { |
25 | const uint offsetsAndSize[26]; |
26 | char stringdata0[94]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QDialog_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QDialog_t qt_meta_stringdata_QDialog = { |
31 | { |
32 | QT_MOC_LITERAL(0, 7), // "QDialog" |
33 | QT_MOC_LITERAL(8, 8), // "finished" |
34 | QT_MOC_LITERAL(17, 0), // "" |
35 | QT_MOC_LITERAL(18, 6), // "result" |
36 | QT_MOC_LITERAL(25, 8), // "accepted" |
37 | QT_MOC_LITERAL(34, 8), // "rejected" |
38 | QT_MOC_LITERAL(43, 4), // "open" |
39 | QT_MOC_LITERAL(48, 4), // "exec" |
40 | QT_MOC_LITERAL(53, 4), // "done" |
41 | QT_MOC_LITERAL(58, 6), // "accept" |
42 | QT_MOC_LITERAL(65, 6), // "reject" |
43 | QT_MOC_LITERAL(72, 15), // "sizeGripEnabled" |
44 | QT_MOC_LITERAL(88, 5) // "modal" |
45 | |
46 | }, |
47 | "QDialog\0finished\0\0result\0accepted\0" |
48 | "rejected\0open\0exec\0done\0accept\0reject\0" |
49 | "sizeGripEnabled\0modal" |
50 | }; |
51 | #undef QT_MOC_LITERAL |
52 | |
53 | static const uint qt_meta_data_QDialog[] = { |
54 | |
55 | // content: |
56 | 9, // revision |
57 | 0, // classname |
58 | 0, 0, // classinfo |
59 | 8, 14, // methods |
60 | 2, 74, // properties |
61 | 0, 0, // enums/sets |
62 | 0, 0, // constructors |
63 | 0, // flags |
64 | 3, // signalCount |
65 | |
66 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
67 | 1, 1, 62, 2, 0x06, 2 /* Public */, |
68 | 4, 0, 65, 2, 0x06, 4 /* Public */, |
69 | 5, 0, 66, 2, 0x06, 5 /* Public */, |
70 | |
71 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
72 | 6, 0, 67, 2, 0x0a, 6 /* Public */, |
73 | 7, 0, 68, 2, 0x0a, 7 /* Public */, |
74 | 8, 1, 69, 2, 0x0a, 8 /* Public */, |
75 | 9, 0, 72, 2, 0x0a, 10 /* Public */, |
76 | 10, 0, 73, 2, 0x0a, 11 /* Public */, |
77 | |
78 | // signals: parameters |
79 | QMetaType::Void, QMetaType::Int, 3, |
80 | QMetaType::Void, |
81 | QMetaType::Void, |
82 | |
83 | // slots: parameters |
84 | QMetaType::Void, |
85 | QMetaType::Int, |
86 | QMetaType::Void, QMetaType::Int, 2, |
87 | QMetaType::Void, |
88 | QMetaType::Void, |
89 | |
90 | // properties: name, type, flags |
91 | 11, QMetaType::Bool, 0x00015103, uint(-1), 0, |
92 | 12, QMetaType::Bool, 0x00015103, uint(-1), 0, |
93 | |
94 | 0 // eod |
95 | }; |
96 | |
97 | void QDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
98 | { |
99 | if (_c == QMetaObject::InvokeMetaMethod) { |
100 | Q_ASSERT(staticMetaObject.cast(_o)); |
101 | auto *_t = static_cast<QDialog *>(_o); |
102 | Q_UNUSED(_t) |
103 | switch (_id) { |
104 | case 0: _t->finished((*reinterpret_cast< int(*)>(_a[1]))); break; |
105 | case 1: _t->accepted(); break; |
106 | case 2: _t->rejected(); break; |
107 | case 3: _t->open(); break; |
108 | case 4: { int _r = _t->exec(); |
109 | if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); } break; |
110 | case 5: _t->done((*reinterpret_cast< int(*)>(_a[1]))); break; |
111 | case 6: _t->accept(); break; |
112 | case 7: _t->reject(); break; |
113 | default: ; |
114 | } |
115 | } else if (_c == QMetaObject::IndexOfMethod) { |
116 | int *result = reinterpret_cast<int *>(_a[0]); |
117 | { |
118 | using _t = void (QDialog::*)(int ); |
119 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDialog::finished)) { |
120 | *result = 0; |
121 | return; |
122 | } |
123 | } |
124 | { |
125 | using _t = void (QDialog::*)(); |
126 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDialog::accepted)) { |
127 | *result = 1; |
128 | return; |
129 | } |
130 | } |
131 | { |
132 | using _t = void (QDialog::*)(); |
133 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDialog::rejected)) { |
134 | *result = 2; |
135 | return; |
136 | } |
137 | } |
138 | } |
139 | #ifndef QT_NO_PROPERTIES |
140 | else if (_c == QMetaObject::ReadProperty) { |
141 | Q_ASSERT(staticMetaObject.cast(_o)); |
142 | auto *_t = static_cast<QDialog *>(_o); |
143 | Q_UNUSED(_t) |
144 | void *_v = _a[0]; |
145 | switch (_id) { |
146 | case 0: *reinterpret_cast< bool*>(_v) = _t->isSizeGripEnabled(); break; |
147 | case 1: *reinterpret_cast< bool*>(_v) = _t->isModal(); break; |
148 | default: break; |
149 | } |
150 | } else if (_c == QMetaObject::WriteProperty) { |
151 | Q_ASSERT(staticMetaObject.cast(_o)); |
152 | auto *_t = static_cast<QDialog *>(_o); |
153 | Q_UNUSED(_t) |
154 | void *_v = _a[0]; |
155 | switch (_id) { |
156 | case 0: _t->setSizeGripEnabled(*reinterpret_cast< bool*>(_v)); break; |
157 | case 1: _t->setModal(*reinterpret_cast< bool*>(_v)); break; |
158 | default: break; |
159 | } |
160 | } else if (_c == QMetaObject::ResetProperty) { |
161 | } else if (_c == QMetaObject::BindableProperty) { |
162 | } |
163 | #endif // QT_NO_PROPERTIES |
164 | } |
165 | |
166 | const QMetaObject QDialog::staticMetaObject = { { |
167 | QMetaObject::SuperData::link<QWidget::staticMetaObject>(), |
168 | qt_meta_stringdata_QDialog.offsetsAndSize, |
169 | qt_meta_data_QDialog, |
170 | qt_static_metacall, |
171 | nullptr, |
172 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QDialog_t |
173 | , QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
174 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
175 | |
176 | |
177 | >, |
178 | nullptr |
179 | } }; |
180 | |
181 | |
182 | const QMetaObject *QDialog::metaObject() const |
183 | { |
184 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
185 | } |
186 | |
187 | void *QDialog::qt_metacast(const char *_clname) |
188 | { |
189 | if (!_clname) return nullptr; |
190 | if (!strcmp(_clname, qt_meta_stringdata_QDialog.stringdata0)) |
191 | return static_cast<void*>(this); |
192 | return QWidget::qt_metacast(_clname); |
193 | } |
194 | |
195 | int QDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
196 | { |
197 | _id = QWidget::qt_metacall(_c, _id, _a); |
198 | if (_id < 0) |
199 | return _id; |
200 | if (_c == QMetaObject::InvokeMetaMethod) { |
201 | if (_id < 8) |
202 | qt_static_metacall(this, _c, _id, _a); |
203 | _id -= 8; |
204 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
205 | if (_id < 8) |
206 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
207 | _id -= 8; |
208 | } |
209 | #ifndef QT_NO_PROPERTIES |
210 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
211 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
212 | || _c == QMetaObject::RegisterPropertyMetaType) { |
213 | qt_static_metacall(this, _c, _id, _a); |
214 | _id -= 2; |
215 | } |
216 | #endif // QT_NO_PROPERTIES |
217 | return _id; |
218 | } |
219 | |
220 | // SIGNAL 0 |
221 | void QDialog::finished(int _t1) |
222 | { |
223 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
224 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
225 | } |
226 | |
227 | // SIGNAL 1 |
228 | void QDialog::accepted() |
229 | { |
230 | QMetaObject::activate(this, &staticMetaObject, 1, nullptr); |
231 | } |
232 | |
233 | // SIGNAL 2 |
234 | void QDialog::rejected() |
235 | { |
236 | QMetaObject::activate(this, &staticMetaObject, 2, nullptr); |
237 | } |
238 | QT_WARNING_POP |
239 | QT_END_MOC_NAMESPACE |
240 | |