1/****************************************************************************
2** Meta object code from reading C++ file 'qprintdialog.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/qprintdialog.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qprintdialog.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
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_QPrintDialog_t {
25 const uint offsetsAndSize[20];
26 char stringdata0[131];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QPrintDialog_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QPrintDialog_t qt_meta_stringdata_QPrintDialog = {
31 {
32QT_MOC_LITERAL(0, 12), // "QPrintDialog"
33QT_MOC_LITERAL(13, 8), // "accepted"
34QT_MOC_LITERAL(22, 0), // ""
35QT_MOC_LITERAL(23, 9), // "QPrinter*"
36QT_MOC_LITERAL(33, 7), // "printer"
37QT_MOC_LITERAL(41, 21), // "_q_togglePageSetCombo"
38QT_MOC_LITERAL(63, 25), // "_q_collapseOrExpandDialog"
39QT_MOC_LITERAL(89, 14), // "_q_checkFields"
40QT_MOC_LITERAL(104, 7), // "options"
41QT_MOC_LITERAL(112, 18) // "PrintDialogOptions"
42
43 },
44 "QPrintDialog\0accepted\0\0QPrinter*\0"
45 "printer\0_q_togglePageSetCombo\0"
46 "_q_collapseOrExpandDialog\0_q_checkFields\0"
47 "options\0PrintDialogOptions"
48};
49#undef QT_MOC_LITERAL
50
51static const uint qt_meta_data_QPrintDialog[] = {
52
53 // content:
54 9, // revision
55 0, // classname
56 0, 0, // classinfo
57 4, 14, // methods
58 1, 46, // properties
59 0, 0, // enums/sets
60 0, 0, // constructors
61 0, // flags
62 1, // signalCount
63
64 // signals: name, argc, parameters, tag, flags, initial metatype offsets
65 1, 1, 38, 2, 0x06, 1 /* Public */,
66
67 // slots: name, argc, parameters, tag, flags, initial metatype offsets
68 5, 1, 41, 2, 0x08, 3 /* Private */,
69 6, 0, 44, 2, 0x08, 5 /* Private */,
70 7, 0, 45, 2, 0x08, 6 /* Private */,
71
72 // signals: parameters
73 QMetaType::Void, 0x80000000 | 3, 4,
74
75 // slots: parameters
76 QMetaType::Void, QMetaType::Bool, 2,
77 QMetaType::Void,
78 QMetaType::Void,
79
80 // properties: name, type, flags
81 8, 0x80000000 | 9, 0x0001510b, uint(-1), 0,
82
83 0 // eod
84};
85
86void QPrintDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
87{
88 if (_c == QMetaObject::InvokeMetaMethod) {
89 Q_ASSERT(staticMetaObject.cast(_o));
90 auto *_t = static_cast<QPrintDialog *>(_o);
91 Q_UNUSED(_t)
92 switch (_id) {
93 case 0: _t->accepted((*reinterpret_cast< QPrinter*(*)>(_a[1]))); break;
94 case 1: _t->d_func()->_q_togglePageSetCombo((*reinterpret_cast< bool(*)>(_a[1]))); break;
95 case 2: _t->d_func()->_q_collapseOrExpandDialog(); break;
96 case 3: _t->d_func()->_q_checkFields(); break;
97 default: ;
98 }
99 } else if (_c == QMetaObject::IndexOfMethod) {
100 int *result = reinterpret_cast<int *>(_a[0]);
101 {
102 using _t = void (QPrintDialog::*)(QPrinter * );
103 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QPrintDialog::accepted)) {
104 *result = 0;
105 return;
106 }
107 }
108 }
109#ifndef QT_NO_PROPERTIES
110 else if (_c == QMetaObject::ReadProperty) {
111 Q_ASSERT(staticMetaObject.cast(_o));
112 auto *_t = static_cast<QPrintDialog *>(_o);
113 Q_UNUSED(_t)
114 void *_v = _a[0];
115 switch (_id) {
116 case 0: *reinterpret_cast< PrintDialogOptions*>(_v) = _t->options(); break;
117 default: break;
118 }
119 } else if (_c == QMetaObject::WriteProperty) {
120 Q_ASSERT(staticMetaObject.cast(_o));
121 auto *_t = static_cast<QPrintDialog *>(_o);
122 Q_UNUSED(_t)
123 void *_v = _a[0];
124 switch (_id) {
125 case 0: _t->setOptions(*reinterpret_cast< PrintDialogOptions*>(_v)); break;
126 default: break;
127 }
128 } else if (_c == QMetaObject::ResetProperty) {
129 } else if (_c == QMetaObject::BindableProperty) {
130 }
131#endif // QT_NO_PROPERTIES
132}
133
134const QMetaObject QPrintDialog::staticMetaObject = { {
135 QMetaObject::SuperData::link<QAbstractPrintDialog::staticMetaObject>(),
136 qt_meta_stringdata_QPrintDialog.offsetsAndSize,
137 qt_meta_data_QPrintDialog,
138 qt_static_metacall,
139 nullptr,
140qt_incomplete_metaTypeArray<qt_meta_stringdata_QPrintDialog_t
141, QtPrivate::TypeAndForceComplete<PrintDialogOptions, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QPrinter *, std::false_type>
142, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
143
144
145>,
146 nullptr
147} };
148
149
150const QMetaObject *QPrintDialog::metaObject() const
151{
152 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
153}
154
155void *QPrintDialog::qt_metacast(const char *_clname)
156{
157 if (!_clname) return nullptr;
158 if (!strcmp(_clname, qt_meta_stringdata_QPrintDialog.stringdata0))
159 return static_cast<void*>(this);
160 return QAbstractPrintDialog::qt_metacast(_clname);
161}
162
163int QPrintDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
164{
165 _id = QAbstractPrintDialog::qt_metacall(_c, _id, _a);
166 if (_id < 0)
167 return _id;
168 if (_c == QMetaObject::InvokeMetaMethod) {
169 if (_id < 4)
170 qt_static_metacall(this, _c, _id, _a);
171 _id -= 4;
172 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
173 if (_id < 4)
174 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
175 _id -= 4;
176 }
177#ifndef QT_NO_PROPERTIES
178 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
179 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
180 || _c == QMetaObject::RegisterPropertyMetaType) {
181 qt_static_metacall(this, _c, _id, _a);
182 _id -= 1;
183 }
184#endif // QT_NO_PROPERTIES
185 return _id;
186}
187
188// SIGNAL 0
189void QPrintDialog::accepted(QPrinter * _t1)
190{
191 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
192 QMetaObject::activate(this, &staticMetaObject, 0, _a);
193}
194QT_WARNING_POP
195QT_END_MOC_NAMESPACE
196