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.8.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#include <QtCore/qtmochelpers.h>
13
14#include <memory>
15
16
17#include <QtCore/qxptype_traits.h>
18#if !defined(Q_MOC_OUTPUT_REVISION)
19#error "The header file 'fontdialog.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 68
21#error "This file was generated using the moc from 6.8.2. It"
22#error "cannot be used with the include files from this version of Qt."
23#error "(The moc has changed too much.)"
24#endif
25
26#ifndef Q_CONSTINIT
27#define Q_CONSTINIT
28#endif
29
30QT_WARNING_PUSH
31QT_WARNING_DISABLE_DEPRECATED
32QT_WARNING_DISABLE_GCC("-Wuseless-cast")
33namespace {
34struct qt_meta_tag_ZN10FontDialogE_t {};
35} // unnamed namespace
36
37
38#ifdef QT_MOC_HAS_STRINGDATA
39static constexpr auto qt_meta_stringdata_ZN10FontDialogE = QtMocHelpers::stringData(
40 "FontDialog",
41 "accepted",
42 "",
43 "rejected",
44 "selectedFontChanged",
45 "font",
46 "open",
47 "selectedFont"
48);
49#else // !QT_MOC_HAS_STRINGDATA
50#error "qtmochelpers.h not found or too old."
51#endif // !QT_MOC_HAS_STRINGDATA
52
53Q_CONSTINIT static const uint qt_meta_data_ZN10FontDialogE[] = {
54
55 // content:
56 12, // revision
57 0, // classname
58 0, 0, // classinfo
59 4, 14, // methods
60 1, 44, // properties
61 0, 0, // enums/sets
62 0, 0, // constructors
63 0, // flags
64 3, // signalCount
65
66 // signals: name, argc, parameters, tag, flags, initial metatype offsets
67 1, 0, 38, 2, 0x06, 2 /* Public */,
68 3, 0, 39, 2, 0x06, 3 /* Public */,
69 4, 1, 40, 2, 0x06, 4 /* Public */,
70
71 // methods: name, argc, parameters, tag, flags, initial metatype offsets
72 6, 0, 43, 2, 0x02, 6 /* Public */,
73
74 // signals: parameters
75 QMetaType::Void,
76 QMetaType::Void,
77 QMetaType::Void, QMetaType::QFont, 5,
78
79 // methods: parameters
80 QMetaType::Void,
81
82 // properties: name, type, flags, notifyId, revision
83 7, QMetaType::QFont, 0x00015103, uint(2), 0,
84
85 0 // eod
86};
87
88Q_CONSTINIT const QMetaObject FontDialog::staticMetaObject = { {
89 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
90 qt_meta_stringdata_ZN10FontDialogE.offsetsAndSizes,
91 qt_meta_data_ZN10FontDialogE,
92 qt_static_metacall,
93 nullptr,
94 qt_incomplete_metaTypeArray<qt_meta_tag_ZN10FontDialogE_t,
95 // property 'selectedFont'
96 QtPrivate::TypeAndForceComplete<QFont, std::true_type>,
97 // Q_OBJECT / Q_GADGET
98 QtPrivate::TypeAndForceComplete<FontDialog, std::true_type>,
99 // method 'accepted'
100 QtPrivate::TypeAndForceComplete<void, std::false_type>,
101 // method 'rejected'
102 QtPrivate::TypeAndForceComplete<void, std::false_type>,
103 // method 'selectedFontChanged'
104 QtPrivate::TypeAndForceComplete<void, std::false_type>,
105 QtPrivate::TypeAndForceComplete<const QFont &, std::false_type>,
106 // method 'open'
107 QtPrivate::TypeAndForceComplete<void, std::false_type>
108 >,
109 nullptr
110} };
111
112void FontDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
113{
114 auto *_t = static_cast<FontDialog *>(_o);
115 if (_c == QMetaObject::InvokeMetaMethod) {
116 switch (_id) {
117 case 0: _t->accepted(); break;
118 case 1: _t->rejected(); break;
119 case 2: _t->selectedFontChanged((*reinterpret_cast< std::add_pointer_t<QFont>>(_a[1]))); break;
120 case 3: _t->open(); break;
121 default: ;
122 }
123 }
124 if (_c == QMetaObject::IndexOfMethod) {
125 int *result = reinterpret_cast<int *>(_a[0]);
126 {
127 using _q_method_type = void (FontDialog::*)();
128 if (_q_method_type _q_method = &FontDialog::accepted; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
129 *result = 0;
130 return;
131 }
132 }
133 {
134 using _q_method_type = void (FontDialog::*)();
135 if (_q_method_type _q_method = &FontDialog::rejected; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
136 *result = 1;
137 return;
138 }
139 }
140 {
141 using _q_method_type = void (FontDialog::*)(const QFont & );
142 if (_q_method_type _q_method = &FontDialog::selectedFontChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
143 *result = 2;
144 return;
145 }
146 }
147 }
148 if (_c == QMetaObject::ReadProperty) {
149 void *_v = _a[0];
150 switch (_id) {
151 case 0: *reinterpret_cast< QFont*>(_v) = _t->selectedFont(); break;
152 default: break;
153 }
154 }
155 if (_c == QMetaObject::WriteProperty) {
156 void *_v = _a[0];
157 switch (_id) {
158 case 0: _t->setSelectedFont(*reinterpret_cast< QFont*>(_v)); break;
159 default: break;
160 }
161 }
162}
163
164const QMetaObject *FontDialog::metaObject() const
165{
166 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
167}
168
169void *FontDialog::qt_metacast(const char *_clname)
170{
171 if (!_clname) return nullptr;
172 if (!strcmp(_clname, qt_meta_stringdata_ZN10FontDialogE.stringdata0))
173 return static_cast<void*>(this);
174 return QObject::qt_metacast(_clname);
175}
176
177int FontDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
178{
179 _id = QObject::qt_metacall(_c, _id, _a);
180 if (_id < 0)
181 return _id;
182 if (_c == QMetaObject::InvokeMetaMethod) {
183 if (_id < 4)
184 qt_static_metacall(this, _c, _id, _a);
185 _id -= 4;
186 }
187 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
188 if (_id < 4)
189 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
190 _id -= 4;
191 }
192 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
193 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
194 || _c == QMetaObject::RegisterPropertyMetaType) {
195 qt_static_metacall(this, _c, _id, _a);
196 _id -= 1;
197 }
198 return _id;
199}
200
201// SIGNAL 0
202void FontDialog::accepted()
203{
204 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
205}
206
207// SIGNAL 1
208void FontDialog::rejected()
209{
210 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
211}
212
213// SIGNAL 2
214void FontDialog::selectedFontChanged(const QFont & _t1)
215{
216 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
217 QMetaObject::activate(this, &staticMetaObject, 2, _a);
218}
219QT_WARNING_POP