9#include "../../../../src/qmltypes/filedialog.h"
10#include <QtCore/qmetatype.h>
12#include <QtCore/qtmochelpers.h>
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.)"
31QT_WARNING_DISABLE_DEPRECATED
32QT_WARNING_DISABLE_GCC(
"-Wuseless-cast")
35#ifdef QT_MOC_HAS_STRINGDATA
36struct qt_meta_stringdata_CLASSFileDialogENDCLASS_t {};
37constexpr auto qt_meta_stringdata_CLASSFileDialogENDCLASS = QtMocHelpers::stringData(
51 "FileDialog::FileMode",
60#error "qtmochelpers.h not found or too old."
64Q_CONSTINIT
static const uint qt_meta_data_CLASSFileDialogENDCLASS[] = {
78 1, 0, 62, 2, 0x06, 6 ,
79 3, 0, 63, 2, 0x06, 7 ,
80 4, 0, 64, 2, 0x06, 8 ,
81 5, 1, 65, 2, 0x06, 9 ,
82 7, 1, 68, 2, 0x06, 11 ,
83 9, 0, 71, 2, 0x06, 13 ,
84 10, 0, 72, 2, 0x06, 14 ,
87 11, 0, 73, 2, 0x02, 15 ,
93 QMetaType::Void, QMetaType::QString, 6,
94 QMetaType::Void, QMetaType::QString, 8,
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,
111 18, uint(FileDialog::OpenFile),
112 19, uint(FileDialog::SaveFile),
117Q_CONSTINIT
const QMetaObject FileDialog::staticMetaObject = { {
118 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
119 qt_meta_stringdata_CLASSFileDialogENDCLASS.offsetsAndSizes,
120 qt_meta_data_CLASSFileDialogENDCLASS,
123 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSFileDialogENDCLASS_t,
125 QtPrivate::TypeAndForceComplete<FileDialog::FileMode, std::true_type>,
127 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
129 QtPrivate::TypeAndForceComplete<QStringList, std::true_type>,
131 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
133 QtPrivate::TypeAndForceComplete<FileDialog::FileMode, std::true_type>,
135 QtPrivate::TypeAndForceComplete<FileDialog, std::true_type>,
137 QtPrivate::TypeAndForceComplete<void, std::false_type>,
139 QtPrivate::TypeAndForceComplete<void, std::false_type>,
141 QtPrivate::TypeAndForceComplete<void, std::false_type>,
143 QtPrivate::TypeAndForceComplete<void, std::false_type>,
144 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
146 QtPrivate::TypeAndForceComplete<void, std::false_type>,
147 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
149 QtPrivate::TypeAndForceComplete<void, std::false_type>,
151 QtPrivate::TypeAndForceComplete<void, std::false_type>,
153 QtPrivate::TypeAndForceComplete<void, std::false_type>
158void FileDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
160 if (_c == QMetaObject::InvokeMetaMethod) {
161 auto *_t =
static_cast<FileDialog *
>(_o);
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;
174 }
else if (_c == QMetaObject::IndexOfMethod) {
175 int *result =
reinterpret_cast<int *
>(_a[0]);
177 using _t = void (FileDialog::*)();
178 if (_t _q_method = &FileDialog::fileModeChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
184 using _t = void (FileDialog::*)();
185 if (_t _q_method = &FileDialog::titleChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
191 using _t = void (FileDialog::*)();
192 if (_t _q_method = &FileDialog::nameFiltersChanged; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
198 using _t = void (FileDialog::*)(
const QString & );
199 if (_t _q_method = &FileDialog::fileSelected; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
205 using _t = void (FileDialog::*)(
const QString & );
206 if (_t _q_method = &FileDialog::filterSelected; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
212 using _t = void (FileDialog::*)();
213 if (_t _q_method = &FileDialog::accepted; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
219 using _t = void (FileDialog::*)();
220 if (_t _q_method = &FileDialog::rejected; *
reinterpret_cast<_t *
>(_a[1]) == _q_method) {
225 }
else if (_c == QMetaObject::ReadProperty) {
226 auto *_t =
static_cast<FileDialog *
>(_o);
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;
236 }
else if (_c == QMetaObject::WriteProperty) {
237 auto *_t =
static_cast<FileDialog *
>(_o);
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;
246 }
else if (_c == QMetaObject::ResetProperty) {
247 }
else if (_c == QMetaObject::BindableProperty) {
251const QMetaObject *FileDialog::metaObject()
const
253 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
256void *FileDialog::qt_metacast(
const char *_clname)
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);
264int FileDialog::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
266 _id = QObject::qt_metacall(_c, _id, _a);
269 if (_c == QMetaObject::InvokeMetaMethod) {
271 qt_static_metacall(
this, _c, _id, _a);
273 }
else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
275 *
reinterpret_cast<QMetaType *
>(_a[0]) = QMetaType();
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);
287void FileDialog::fileModeChanged()
289 QMetaObject::activate(
this, &staticMetaObject, 0,
nullptr);
293void FileDialog::titleChanged()
295 QMetaObject::activate(
this, &staticMetaObject, 1,
nullptr);
299void FileDialog::nameFiltersChanged()
301 QMetaObject::activate(
this, &staticMetaObject, 2,
nullptr);
305void FileDialog::fileSelected(
const QString & _t1)
307 void *_a[] = {
nullptr,
const_cast<void*
>(
reinterpret_cast<const void*
>(std::addressof(_t1))) };
308 QMetaObject::activate(
this, &staticMetaObject, 3, _a);
312void FileDialog::filterSelected(
const QString & _t1)
314 void *_a[] = {
nullptr,
const_cast<void*
>(
reinterpret_cast<const void*
>(std::addressof(_t1))) };
315 QMetaObject::activate(
this, &staticMetaObject, 4, _a);
319void FileDialog::accepted()
321 QMetaObject::activate(
this, &staticMetaObject, 5,
nullptr);
325void FileDialog::rejected()
327 QMetaObject::activate(
this, &staticMetaObject, 6,
nullptr);