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.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.)"
31QT_WARNING_DISABLE_DEPRECATED
32QT_WARNING_DISABLE_GCC(
"-Wuseless-cast")
34struct qt_meta_tag_ZN10FileDialogE_t {};
38#ifdef QT_MOC_HAS_STRINGDATA
39static constexpr auto qt_meta_stringdata_ZN10FileDialogE = QtMocHelpers::stringData(
53 "FileDialog::FileMode",
62#error "qtmochelpers.h not found or too old."
65Q_CONSTINIT
static const uint qt_meta_data_ZN10FileDialogE[] = {
79 1, 0, 62, 2, 0x06, 6 ,
80 3, 0, 63, 2, 0x06, 7 ,
81 4, 0, 64, 2, 0x06, 8 ,
82 5, 1, 65, 2, 0x06, 9 ,
83 7, 1, 68, 2, 0x06, 11 ,
84 9, 0, 71, 2, 0x06, 13 ,
85 10, 0, 72, 2, 0x06, 14 ,
88 11, 0, 73, 2, 0x02, 15 ,
94 QMetaType::Void, QMetaType::QString, 6,
95 QMetaType::Void, QMetaType::QString, 8,
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,
112 18, uint(FileDialog::OpenFile),
113 19, uint(FileDialog::SaveFile),
118Q_CONSTINIT
const QMetaObject FileDialog::staticMetaObject = { {
119 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
120 qt_meta_stringdata_ZN10FileDialogE.offsetsAndSizes,
121 qt_meta_data_ZN10FileDialogE,
124 qt_incomplete_metaTypeArray<qt_meta_tag_ZN10FileDialogE_t,
126 QtPrivate::TypeAndForceComplete<FileDialog::FileMode, std::true_type>,
128 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
130 QtPrivate::TypeAndForceComplete<QStringList, std::true_type>,
132 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
134 QtPrivate::TypeAndForceComplete<FileDialog::FileMode, std::true_type>,
136 QtPrivate::TypeAndForceComplete<FileDialog, std::true_type>,
138 QtPrivate::TypeAndForceComplete<void, std::false_type>,
140 QtPrivate::TypeAndForceComplete<void, std::false_type>,
142 QtPrivate::TypeAndForceComplete<void, std::false_type>,
144 QtPrivate::TypeAndForceComplete<void, std::false_type>,
145 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
147 QtPrivate::TypeAndForceComplete<void, std::false_type>,
148 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
150 QtPrivate::TypeAndForceComplete<void, std::false_type>,
152 QtPrivate::TypeAndForceComplete<void, std::false_type>,
154 QtPrivate::TypeAndForceComplete<void, std::false_type>
159void FileDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
161 auto *_t =
static_cast<FileDialog *
>(_o);
162 if (_c == QMetaObject::InvokeMetaMethod) {
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;
175 if (_c == QMetaObject::IndexOfMethod) {
176 int *result =
reinterpret_cast<int *
>(_a[0]);
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) {
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) {
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) {
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) {
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) {
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) {
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) {
227 if (_c == QMetaObject::ReadProperty) {
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;
237 if (_c == QMetaObject::WriteProperty) {
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;
248const QMetaObject *FileDialog::metaObject()
const
250 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
253void *FileDialog::qt_metacast(
const char *_clname)
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);
261int FileDialog::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
263 _id = QObject::qt_metacall(_c, _id, _a);
266 if (_c == QMetaObject::InvokeMetaMethod) {
268 qt_static_metacall(
this, _c, _id, _a);
271 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
273 *
reinterpret_cast<QMetaType *
>(_a[0]) = QMetaType();
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);
286void FileDialog::fileModeChanged()
288 QMetaObject::activate(
this, &staticMetaObject, 0,
nullptr);
292void FileDialog::titleChanged()
294 QMetaObject::activate(
this, &staticMetaObject, 1,
nullptr);
298void FileDialog::nameFiltersChanged()
300 QMetaObject::activate(
this, &staticMetaObject, 2,
nullptr);
304void FileDialog::fileSelected(
const QString & _t1)
306 void *_a[] = {
nullptr,
const_cast<void*
>(
reinterpret_cast<const void*
>(std::addressof(_t1))) };
307 QMetaObject::activate(
this, &staticMetaObject, 3, _a);
311void FileDialog::filterSelected(
const QString & _t1)
313 void *_a[] = {
nullptr,
const_cast<void*
>(
reinterpret_cast<const void*
>(std::addressof(_t1))) };
314 QMetaObject::activate(
this, &staticMetaObject, 4, _a);
318void FileDialog::accepted()
320 QMetaObject::activate(
this, &staticMetaObject, 5,
nullptr);
324void FileDialog::rejected()
326 QMetaObject::activate(
this, &staticMetaObject, 6,
nullptr);