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