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