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.8.1)
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.8.1. 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 {
34struct qt_meta_tag_ZN10FileDialogE_t {};
35} // unnamed namespace
36
37
38#ifdef QT_MOC_HAS_STRINGDATA
39static constexpr auto qt_meta_stringdata_ZN10FileDialogE = QtMocHelpers::stringData(
40 "FileDialog",
41 "fileModeChanged",
42 "",
43 "titleChanged",
44 "nameFiltersChanged",
45 "fileSelected",
46 "file",
47 "filterSelected",
48 "filter",
49 "accepted",
50 "rejected",
51 "open",
52 "fileMode",
53 "FileDialog::FileMode",
54 "title",
55 "nameFilters",
56 "selectedFile",
57 "FileMode",
58 "OpenFile",
59 "SaveFile"
60);
61#else // !QT_MOC_HAS_STRINGDATA
62#error "qtmochelpers.h not found or too old."
63#endif // !QT_MOC_HAS_STRINGDATA
64
65Q_CONSTINIT static const uint qt_meta_data_ZN10FileDialogE[] = {
66
67 // content:
68 12, // revision
69 0, // classname
70 0, 0, // classinfo
71 8, 14, // methods
72 4, 74, // properties
73 1, 94, // enums/sets
74 0, 0, // constructors
75 0, // flags
76 7, // signalCount
77
78 // signals: name, argc, parameters, tag, flags, initial metatype offsets
79 1, 0, 62, 2, 0x06, 6 /* Public */,
80 3, 0, 63, 2, 0x06, 7 /* Public */,
81 4, 0, 64, 2, 0x06, 8 /* Public */,
82 5, 1, 65, 2, 0x06, 9 /* Public */,
83 7, 1, 68, 2, 0x06, 11 /* Public */,
84 9, 0, 71, 2, 0x06, 13 /* Public */,
85 10, 0, 72, 2, 0x06, 14 /* Public */,
86
87 // methods: name, argc, parameters, tag, flags, initial metatype offsets
88 11, 0, 73, 2, 0x02, 15 /* Public */,
89
90 // signals: parameters
91 QMetaType::Void,
92 QMetaType::Void,
93 QMetaType::Void,
94 QMetaType::Void, QMetaType::QString, 6,
95 QMetaType::Void, QMetaType::QString, 8,
96 QMetaType::Void,
97 QMetaType::Void,
98
99 // methods: parameters
100 QMetaType::Void,
101
102 // properties: name, type, flags, notifyId, revision
103 12, 0x80000000 | 13, 0x0001510b, uint(0), 0,
104 14, QMetaType::QString, 0x00015103, uint(1), 0,
105 15, QMetaType::QStringList, 0x00015103, uint(2), 0,
106 16, QMetaType::QString, 0x00015001, uint(3), 0,
107
108 // enums: name, alias, flags, count, data
109 17, 17, 0x0, 2, 99,
110
111 // enum data: key, value
112 18, uint(FileDialog::OpenFile),
113 19, uint(FileDialog::SaveFile),
114
115 0 // eod
116};
117
118Q_CONSTINIT const QMetaObject FileDialog::staticMetaObject = { {
119 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
120 qt_meta_stringdata_ZN10FileDialogE.offsetsAndSizes,
121 qt_meta_data_ZN10FileDialogE,
122 qt_static_metacall,
123 nullptr,
124 qt_incomplete_metaTypeArray<qt_meta_tag_ZN10FileDialogE_t,
125 // property 'fileMode'
126 QtPrivate::TypeAndForceComplete<FileDialog::FileMode, std::true_type>,
127 // property 'title'
128 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
129 // property 'nameFilters'
130 QtPrivate::TypeAndForceComplete<QStringList, std::true_type>,
131 // property 'selectedFile'
132 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
133 // enum 'FileMode'
134 QtPrivate::TypeAndForceComplete<FileDialog::FileMode, std::true_type>,
135 // Q_OBJECT / Q_GADGET
136 QtPrivate::TypeAndForceComplete<FileDialog, std::true_type>,
137 // method 'fileModeChanged'
138 QtPrivate::TypeAndForceComplete<void, std::false_type>,
139 // method 'titleChanged'
140 QtPrivate::TypeAndForceComplete<void, std::false_type>,
141 // method 'nameFiltersChanged'
142 QtPrivate::TypeAndForceComplete<void, std::false_type>,
143 // method 'fileSelected'
144 QtPrivate::TypeAndForceComplete<void, std::false_type>,
145 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
146 // method 'filterSelected'
147 QtPrivate::TypeAndForceComplete<void, std::false_type>,
148 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
149 // method 'accepted'
150 QtPrivate::TypeAndForceComplete<void, std::false_type>,
151 // method 'rejected'
152 QtPrivate::TypeAndForceComplete<void, std::false_type>,
153 // method 'open'
154 QtPrivate::TypeAndForceComplete<void, std::false_type>
155 >,
156 nullptr
157} };
158
159void FileDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
160{
161 auto *_t = static_cast<FileDialog *>(_o);
162 if (_c == QMetaObject::InvokeMetaMethod) {
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 }
175 if (_c == QMetaObject::IndexOfMethod) {
176 int *result = reinterpret_cast<int *>(_a[0]);
177 {
178 using _q_method_type = void (FileDialog::*)();
179 if (_q_method_type _q_method = &FileDialog::fileModeChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
180 *result = 0;
181 return;
182 }
183 }
184 {
185 using _q_method_type = void (FileDialog::*)();
186 if (_q_method_type _q_method = &FileDialog::titleChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
187 *result = 1;
188 return;
189 }
190 }
191 {
192 using _q_method_type = void (FileDialog::*)();
193 if (_q_method_type _q_method = &FileDialog::nameFiltersChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
194 *result = 2;
195 return;
196 }
197 }
198 {
199 using _q_method_type = void (FileDialog::*)(const QString & );
200 if (_q_method_type _q_method = &FileDialog::fileSelected; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
201 *result = 3;
202 return;
203 }
204 }
205 {
206 using _q_method_type = void (FileDialog::*)(const QString & );
207 if (_q_method_type _q_method = &FileDialog::filterSelected; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
208 *result = 4;
209 return;
210 }
211 }
212 {
213 using _q_method_type = void (FileDialog::*)();
214 if (_q_method_type _q_method = &FileDialog::accepted; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
215 *result = 5;
216 return;
217 }
218 }
219 {
220 using _q_method_type = void (FileDialog::*)();
221 if (_q_method_type _q_method = &FileDialog::rejected; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
222 *result = 6;
223 return;
224 }
225 }
226 }
227 if (_c == QMetaObject::ReadProperty) {
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 }
237 if (_c == QMetaObject::WriteProperty) {
238 void *_v = _a[0];
239 switch (_id) {
240 case 0: _t->setFileMode(*reinterpret_cast< FileDialog::FileMode*>(_v)); break;
241 case 1: _t->setTitle(*reinterpret_cast< QString*>(_v)); break;
242 case 2: _t->setNameFilters(*reinterpret_cast< QStringList*>(_v)); break;
243 default: break;
244 }
245 }
246}
247
248const QMetaObject *FileDialog::metaObject() const
249{
250 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
251}
252
253void *FileDialog::qt_metacast(const char *_clname)
254{
255 if (!_clname) return nullptr;
256 if (!strcmp(_clname, qt_meta_stringdata_ZN10FileDialogE.stringdata0))
257 return static_cast<void*>(this);
258 return QObject::qt_metacast(_clname);
259}
260
261int FileDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
262{
263 _id = QObject::qt_metacall(_c, _id, _a);
264 if (_id < 0)
265 return _id;
266 if (_c == QMetaObject::InvokeMetaMethod) {
267 if (_id < 8)
268 qt_static_metacall(this, _c, _id, _a);
269 _id -= 8;
270 }
271 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
272 if (_id < 8)
273 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
274 _id -= 8;
275 }
276 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
277 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
278 || _c == QMetaObject::RegisterPropertyMetaType) {
279 qt_static_metacall(this, _c, _id, _a);
280 _id -= 4;
281 }
282 return _id;
283}
284
285// SIGNAL 0
286void FileDialog::fileModeChanged()
287{
288 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
289}
290
291// SIGNAL 1
292void FileDialog::titleChanged()
293{
294 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
295}
296
297// SIGNAL 2
298void FileDialog::nameFiltersChanged()
299{
300 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
301}
302
303// SIGNAL 3
304void FileDialog::fileSelected(const QString & _t1)
305{
306 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
307 QMetaObject::activate(this, &staticMetaObject, 3, _a);
308}
309
310// SIGNAL 4
311void FileDialog::filterSelected(const QString & _t1)
312{
313 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
314 QMetaObject::activate(this, &staticMetaObject, 4, _a);
315}
316
317// SIGNAL 5
318void FileDialog::accepted()
319{
320 QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
321}
322
323// SIGNAL 6
324void FileDialog::rejected()
325{
326 QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
327}
328QT_WARNING_POP