1/****************************************************************************
2** Meta object code from reading C++ file 'qfontdialog.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/qfontdialog.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qfontdialog.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_QFontDialog_t {
25 const uint offsetsAndSize[42];
26 char stringdata0[319];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QFontDialog_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QFontDialog_t qt_meta_stringdata_QFontDialog = {
31 {
32QT_MOC_LITERAL(0, 11), // "QFontDialog"
33QT_MOC_LITERAL(12, 18), // "currentFontChanged"
34QT_MOC_LITERAL(31, 0), // ""
35QT_MOC_LITERAL(32, 4), // "font"
36QT_MOC_LITERAL(37, 12), // "fontSelected"
37QT_MOC_LITERAL(50, 14), // "_q_sizeChanged"
38QT_MOC_LITERAL(65, 20), // "_q_familyHighlighted"
39QT_MOC_LITERAL(86, 27), // "_q_writingSystemHighlighted"
40QT_MOC_LITERAL(114, 19), // "_q_styleHighlighted"
41QT_MOC_LITERAL(134, 18), // "_q_sizeHighlighted"
42QT_MOC_LITERAL(153, 15), // "_q_updateSample"
43QT_MOC_LITERAL(169, 11), // "currentFont"
44QT_MOC_LITERAL(181, 7), // "options"
45QT_MOC_LITERAL(189, 17), // "FontDialogOptions"
46QT_MOC_LITERAL(207, 16), // "FontDialogOption"
47QT_MOC_LITERAL(224, 9), // "NoButtons"
48QT_MOC_LITERAL(234, 19), // "DontUseNativeDialog"
49QT_MOC_LITERAL(254, 13), // "ScalableFonts"
50QT_MOC_LITERAL(268, 16), // "NonScalableFonts"
51QT_MOC_LITERAL(285, 15), // "MonospacedFonts"
52QT_MOC_LITERAL(301, 17) // "ProportionalFonts"
53
54 },
55 "QFontDialog\0currentFontChanged\0\0font\0"
56 "fontSelected\0_q_sizeChanged\0"
57 "_q_familyHighlighted\0_q_writingSystemHighlighted\0"
58 "_q_styleHighlighted\0_q_sizeHighlighted\0"
59 "_q_updateSample\0currentFont\0options\0"
60 "FontDialogOptions\0FontDialogOption\0"
61 "NoButtons\0DontUseNativeDialog\0"
62 "ScalableFonts\0NonScalableFonts\0"
63 "MonospacedFonts\0ProportionalFonts"
64};
65#undef QT_MOC_LITERAL
66
67static const uint qt_meta_data_QFontDialog[] = {
68
69 // content:
70 9, // revision
71 0, // classname
72 0, 0, // classinfo
73 8, 14, // methods
74 2, 84, // properties
75 1, 94, // enums/sets
76 0, 0, // constructors
77 0, // flags
78 2, // signalCount
79
80 // signals: name, argc, parameters, tag, flags, initial metatype offsets
81 1, 1, 62, 2, 0x06, 2 /* Public */,
82 4, 1, 65, 2, 0x06, 4 /* Public */,
83
84 // slots: name, argc, parameters, tag, flags, initial metatype offsets
85 5, 1, 68, 2, 0x08, 6 /* Private */,
86 6, 1, 71, 2, 0x08, 8 /* Private */,
87 7, 1, 74, 2, 0x08, 10 /* Private */,
88 8, 1, 77, 2, 0x08, 12 /* Private */,
89 9, 1, 80, 2, 0x08, 14 /* Private */,
90 10, 0, 83, 2, 0x08, 16 /* Private */,
91
92 // signals: parameters
93 QMetaType::Void, QMetaType::QFont, 3,
94 QMetaType::Void, QMetaType::QFont, 3,
95
96 // slots: parameters
97 QMetaType::Void, QMetaType::QString, 2,
98 QMetaType::Void, QMetaType::Int, 2,
99 QMetaType::Void, QMetaType::Int, 2,
100 QMetaType::Void, QMetaType::Int, 2,
101 QMetaType::Void, QMetaType::Int, 2,
102 QMetaType::Void,
103
104 // properties: name, type, flags
105 11, QMetaType::QFont, 0x00015103, uint(0), 0,
106 12, 0x80000000 | 13, 0x0001510b, uint(-1), 0,
107
108 // enums: name, alias, flags, count, data
109 14, 14, 0x0, 6, 99,
110
111 // enum data: key, value
112 15, uint(QFontDialog::NoButtons),
113 16, uint(QFontDialog::DontUseNativeDialog),
114 17, uint(QFontDialog::ScalableFonts),
115 18, uint(QFontDialog::NonScalableFonts),
116 19, uint(QFontDialog::MonospacedFonts),
117 20, uint(QFontDialog::ProportionalFonts),
118
119 0 // eod
120};
121
122void QFontDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
123{
124 if (_c == QMetaObject::InvokeMetaMethod) {
125 Q_ASSERT(staticMetaObject.cast(_o));
126 auto *_t = static_cast<QFontDialog *>(_o);
127 Q_UNUSED(_t)
128 switch (_id) {
129 case 0: _t->currentFontChanged((*reinterpret_cast< const QFont(*)>(_a[1]))); break;
130 case 1: _t->fontSelected((*reinterpret_cast< const QFont(*)>(_a[1]))); break;
131 case 2: _t->d_func()->_q_sizeChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
132 case 3: _t->d_func()->_q_familyHighlighted((*reinterpret_cast< int(*)>(_a[1]))); break;
133 case 4: _t->d_func()->_q_writingSystemHighlighted((*reinterpret_cast< int(*)>(_a[1]))); break;
134 case 5: _t->d_func()->_q_styleHighlighted((*reinterpret_cast< int(*)>(_a[1]))); break;
135 case 6: _t->d_func()->_q_sizeHighlighted((*reinterpret_cast< int(*)>(_a[1]))); break;
136 case 7: _t->d_func()->_q_updateSample(); break;
137 default: ;
138 }
139 } else if (_c == QMetaObject::IndexOfMethod) {
140 int *result = reinterpret_cast<int *>(_a[0]);
141 {
142 using _t = void (QFontDialog::*)(const QFont & );
143 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QFontDialog::currentFontChanged)) {
144 *result = 0;
145 return;
146 }
147 }
148 {
149 using _t = void (QFontDialog::*)(const QFont & );
150 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QFontDialog::fontSelected)) {
151 *result = 1;
152 return;
153 }
154 }
155 }
156#ifndef QT_NO_PROPERTIES
157 else if (_c == QMetaObject::ReadProperty) {
158 Q_ASSERT(staticMetaObject.cast(_o));
159 auto *_t = static_cast<QFontDialog *>(_o);
160 Q_UNUSED(_t)
161 void *_v = _a[0];
162 switch (_id) {
163 case 0: *reinterpret_cast< QFont*>(_v) = _t->currentFont(); break;
164 case 1: *reinterpret_cast< FontDialogOptions*>(_v) = _t->options(); break;
165 default: break;
166 }
167 } else if (_c == QMetaObject::WriteProperty) {
168 Q_ASSERT(staticMetaObject.cast(_o));
169 auto *_t = static_cast<QFontDialog *>(_o);
170 Q_UNUSED(_t)
171 void *_v = _a[0];
172 switch (_id) {
173 case 0: _t->setCurrentFont(*reinterpret_cast< QFont*>(_v)); break;
174 case 1: _t->setOptions(*reinterpret_cast< FontDialogOptions*>(_v)); break;
175 default: break;
176 }
177 } else if (_c == QMetaObject::ResetProperty) {
178 } else if (_c == QMetaObject::BindableProperty) {
179 }
180#endif // QT_NO_PROPERTIES
181}
182
183const QMetaObject QFontDialog::staticMetaObject = { {
184 QMetaObject::SuperData::link<QDialog::staticMetaObject>(),
185 qt_meta_stringdata_QFontDialog.offsetsAndSize,
186 qt_meta_data_QFontDialog,
187 qt_static_metacall,
188 nullptr,
189qt_incomplete_metaTypeArray<qt_meta_stringdata_QFontDialog_t
190, QtPrivate::TypeAndForceComplete<QFont, std::true_type>, QtPrivate::TypeAndForceComplete<FontDialogOptions, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QFont &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QFont &, std::false_type>
191, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
192
193
194>,
195 nullptr
196} };
197
198
199const QMetaObject *QFontDialog::metaObject() const
200{
201 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
202}
203
204void *QFontDialog::qt_metacast(const char *_clname)
205{
206 if (!_clname) return nullptr;
207 if (!strcmp(_clname, qt_meta_stringdata_QFontDialog.stringdata0))
208 return static_cast<void*>(this);
209 return QDialog::qt_metacast(_clname);
210}
211
212int QFontDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
213{
214 _id = QDialog::qt_metacall(_c, _id, _a);
215 if (_id < 0)
216 return _id;
217 if (_c == QMetaObject::InvokeMetaMethod) {
218 if (_id < 8)
219 qt_static_metacall(this, _c, _id, _a);
220 _id -= 8;
221 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
222 if (_id < 8)
223 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
224 _id -= 8;
225 }
226#ifndef QT_NO_PROPERTIES
227 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
228 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
229 || _c == QMetaObject::RegisterPropertyMetaType) {
230 qt_static_metacall(this, _c, _id, _a);
231 _id -= 2;
232 }
233#endif // QT_NO_PROPERTIES
234 return _id;
235}
236
237// SIGNAL 0
238void QFontDialog::currentFontChanged(const QFont & _t1)
239{
240 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
241 QMetaObject::activate(this, &staticMetaObject, 0, _a);
242}
243
244// SIGNAL 1
245void QFontDialog::fontSelected(const QFont & _t1)
246{
247 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
248 QMetaObject::activate(this, &staticMetaObject, 1, _a);
249}
250QT_WARNING_POP
251QT_END_MOC_NAMESPACE
252