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