CuteLogger
Fast and simple logging solution for Qt based applications
moc_fontdialog.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'fontdialog.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.6.2)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/qmltypes/fontdialog.h"
10#include <QtCore/qmetatype.h>
11
12#if __has_include(<QtCore/qtmochelpers.h>)
13#include <QtCore/qtmochelpers.h>
14#else
15QT_BEGIN_MOC_NAMESPACE
16#endif
17
18
19#include <memory>
20
21#if !defined(Q_MOC_OUTPUT_REVISION)
22#error "The header file 'fontdialog.h' doesn't include <QObject>."
23#elif Q_MOC_OUTPUT_REVISION != 68
24#error "This file was generated using the moc from 6.6.2. It"
25#error "cannot be used with the include files from this version of Qt."
26#error "(The moc has changed too much.)"
27#endif
28
29#ifndef Q_CONSTINIT
30#define Q_CONSTINIT
31#endif
32
33QT_WARNING_PUSH
34QT_WARNING_DISABLE_DEPRECATED
35QT_WARNING_DISABLE_GCC("-Wuseless-cast")
36namespace {
37
38#ifdef QT_MOC_HAS_STRINGDATA
39struct qt_meta_stringdata_CLASSFontDialogENDCLASS_t {};
40constexpr auto qt_meta_stringdata_CLASSFontDialogENDCLASS = QtMocHelpers::stringData(
41 "FontDialog",
42 "accepted",
43 "",
44 "rejected",
45 "selectedFontChanged",
46 "font",
47 "open",
48 "selectedFont"
49);
50#else // !QT_MOC_HAS_STRING_DATA
51struct qt_meta_stringdata_CLASSFontDialogENDCLASS_t {
52 uint offsetsAndSizes[16];
53 char stringdata0[11];
54 char stringdata1[9];
55 char stringdata2[1];
56 char stringdata3[9];
57 char stringdata4[20];
58 char stringdata5[5];
59 char stringdata6[5];
60 char stringdata7[13];
61};
62#define QT_MOC_LITERAL(ofs, len) \
63 uint(sizeof(qt_meta_stringdata_CLASSFontDialogENDCLASS_t::offsetsAndSizes) + ofs), len
64Q_CONSTINIT static const qt_meta_stringdata_CLASSFontDialogENDCLASS_t qt_meta_stringdata_CLASSFontDialogENDCLASS = {
65 {
66 QT_MOC_LITERAL(0, 10), // "FontDialog"
67 QT_MOC_LITERAL(11, 8), // "accepted"
68 QT_MOC_LITERAL(20, 0), // ""
69 QT_MOC_LITERAL(21, 8), // "rejected"
70 QT_MOC_LITERAL(30, 19), // "selectedFontChanged"
71 QT_MOC_LITERAL(50, 4), // "font"
72 QT_MOC_LITERAL(55, 4), // "open"
73 QT_MOC_LITERAL(60, 12) // "selectedFont"
74 },
75 "FontDialog",
76 "accepted",
77 "",
78 "rejected",
79 "selectedFontChanged",
80 "font",
81 "open",
82 "selectedFont"
83};
84#undef QT_MOC_LITERAL
85#endif // !QT_MOC_HAS_STRING_DATA
86} // unnamed namespace
87
88Q_CONSTINIT static const uint qt_meta_data_CLASSFontDialogENDCLASS[] = {
89
90 // content:
91 12, // revision
92 0, // classname
93 0, 0, // classinfo
94 4, 14, // methods
95 1, 44, // properties
96 0, 0, // enums/sets
97 0, 0, // constructors
98 0, // flags
99 3, // signalCount
100
101 // signals: name, argc, parameters, tag, flags, initial metatype offsets
102 1, 0, 38, 2, 0x06, 2 /* Public */,
103 3, 0, 39, 2, 0x06, 3 /* Public */,
104 4, 1, 40, 2, 0x06, 4 /* Public */,
105
106 // methods: name, argc, parameters, tag, flags, initial metatype offsets
107 6, 0, 43, 2, 0x02, 6 /* Public */,
108
109 // signals: parameters
110 QMetaType::Void,
111 QMetaType::Void,
112 QMetaType::Void, QMetaType::QFont, 5,
113
114 // methods: parameters
115 QMetaType::Void,
116
117 // properties: name, type, flags
118 7, QMetaType::QFont, 0x00015103, uint(2), 0,
119
120 0 // eod
121};
122
123Q_CONSTINIT const QMetaObject FontDialog::staticMetaObject = { {
124 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
125 qt_meta_stringdata_CLASSFontDialogENDCLASS.offsetsAndSizes,
126 qt_meta_data_CLASSFontDialogENDCLASS,
127 qt_static_metacall,
128 nullptr,
129 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSFontDialogENDCLASS_t,
130 // property 'selectedFont'
131 QtPrivate::TypeAndForceComplete<QFont, std::true_type>,
132 // Q_OBJECT / Q_GADGET
133 QtPrivate::TypeAndForceComplete<FontDialog, std::true_type>,
134 // method 'accepted'
135 QtPrivate::TypeAndForceComplete<void, std::false_type>,
136 // method 'rejected'
137 QtPrivate::TypeAndForceComplete<void, std::false_type>,
138 // method 'selectedFontChanged'
139 QtPrivate::TypeAndForceComplete<void, std::false_type>,
140 QtPrivate::TypeAndForceComplete<const QFont &, std::false_type>,
141 // method 'open'
142 QtPrivate::TypeAndForceComplete<void, std::false_type>
143 >,
144 nullptr
145} };
146
147void FontDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
148{
149 if (_c == QMetaObject::InvokeMetaMethod) {
150 auto *_t = static_cast<FontDialog *>(_o);
151 (void)_t;
152 switch (_id) {
153 case 0: _t->accepted(); break;
154 case 1: _t->rejected(); break;
155 case 2: _t->selectedFontChanged((*reinterpret_cast< std::add_pointer_t<QFont>>(_a[1]))); break;
156 case 3: _t->open(); break;
157 default: ;
158 }
159 } else if (_c == QMetaObject::IndexOfMethod) {
160 int *result = reinterpret_cast<int *>(_a[0]);
161 {
162 using _t = void (FontDialog::*)();
163 if (_t _q_method = &FontDialog::accepted; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
164 *result = 0;
165 return;
166 }
167 }
168 {
169 using _t = void (FontDialog::*)();
170 if (_t _q_method = &FontDialog::rejected; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
171 *result = 1;
172 return;
173 }
174 }
175 {
176 using _t = void (FontDialog::*)(const QFont & );
177 if (_t _q_method = &FontDialog::selectedFontChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
178 *result = 2;
179 return;
180 }
181 }
182 } else if (_c == QMetaObject::ReadProperty) {
183 auto *_t = static_cast<FontDialog *>(_o);
184 (void)_t;
185 void *_v = _a[0];
186 switch (_id) {
187 case 0: *reinterpret_cast< QFont*>(_v) = _t->selectedFont(); break;
188 default: break;
189 }
190 } else if (_c == QMetaObject::WriteProperty) {
191 auto *_t = static_cast<FontDialog *>(_o);
192 (void)_t;
193 void *_v = _a[0];
194 switch (_id) {
195 case 0: _t->setSelectedFont(*reinterpret_cast< QFont*>(_v)); break;
196 default: break;
197 }
198 } else if (_c == QMetaObject::ResetProperty) {
199 } else if (_c == QMetaObject::BindableProperty) {
200 }
201}
202
203const QMetaObject *FontDialog::metaObject() const
204{
205 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
206}
207
208void *FontDialog::qt_metacast(const char *_clname)
209{
210 if (!_clname) return nullptr;
211 if (!strcmp(_clname, qt_meta_stringdata_CLASSFontDialogENDCLASS.stringdata0))
212 return static_cast<void*>(this);
213 return QObject::qt_metacast(_clname);
214}
215
216int FontDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
217{
218 _id = QObject::qt_metacall(_c, _id, _a);
219 if (_id < 0)
220 return _id;
221 if (_c == QMetaObject::InvokeMetaMethod) {
222 if (_id < 4)
223 qt_static_metacall(this, _c, _id, _a);
224 _id -= 4;
225 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
226 if (_id < 4)
227 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
228 _id -= 4;
229 }else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
230 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
231 || _c == QMetaObject::RegisterPropertyMetaType) {
232 qt_static_metacall(this, _c, _id, _a);
233 _id -= 1;
234 }
235 return _id;
236}
237
238// SIGNAL 0
239void FontDialog::accepted()
240{
241 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
242}
243
244// SIGNAL 1
245void FontDialog::rejected()
246{
247 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
248}
249
250// SIGNAL 2
251void FontDialog::selectedFontChanged(const QFont & _t1)
252{
253 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
254 QMetaObject::activate(this, &staticMetaObject, 2, _a);
255}
256QT_WARNING_POP