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 69 (Qt 6.10.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 != 69
21#error "This file was generated using the moc from 6.10.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
37template <> constexpr inline auto FontDialog::qt_create_metaobjectdata<qt_meta_tag_ZN10FontDialogE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "FontDialog",
42 "accepted",
43 "",
44 "rejected",
45 "selectedFontChanged",
46 "QFont",
47 "font",
48 "open",
49 "selectedFont"
50 };
51
52 QtMocHelpers::UintData qt_methods {
53 // Signal 'accepted'
54 QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
55 // Signal 'rejected'
56 QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
57 // Signal 'selectedFontChanged'
58 QtMocHelpers::SignalData<void(const QFont &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
59 { 0x80000000 | 5, 6 },
60 }}),
61 // Method 'open'
62 QtMocHelpers::MethodData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
63 };
64 QtMocHelpers::UintData qt_properties {
65 // property 'selectedFont'
66 QtMocHelpers::PropertyData<QFont>(8, 0x80000000 | 5, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
67 };
68 QtMocHelpers::UintData qt_enums {
69 };
70 return QtMocHelpers::metaObjectData<FontDialog, qt_meta_tag_ZN10FontDialogE_t>(QMC::MetaObjectFlag{}, qt_stringData,
71 qt_methods, qt_properties, qt_enums);
72}
73Q_CONSTINIT const QMetaObject FontDialog::staticMetaObject = { {
74 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
75 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10FontDialogE_t>.stringdata,
76 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10FontDialogE_t>.data,
77 qt_static_metacall,
78 nullptr,
79 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10FontDialogE_t>.metaTypes,
80 nullptr
81} };
82
83void FontDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
84{
85 auto *_t = static_cast<FontDialog *>(_o);
86 if (_c == QMetaObject::InvokeMetaMethod) {
87 switch (_id) {
88 case 0: _t->accepted(); break;
89 case 1: _t->rejected(); break;
90 case 2: _t->selectedFontChanged((*reinterpret_cast<std::add_pointer_t<QFont>>(_a[1]))); break;
91 case 3: _t->open(); break;
92 default: ;
93 }
94 }
95 if (_c == QMetaObject::IndexOfMethod) {
96 if (QtMocHelpers::indexOfMethod<void (FontDialog::*)()>(_a, &FontDialog::accepted, 0))
97 return;
98 if (QtMocHelpers::indexOfMethod<void (FontDialog::*)()>(_a, &FontDialog::rejected, 1))
99 return;
100 if (QtMocHelpers::indexOfMethod<void (FontDialog::*)(const QFont & )>(_a, &FontDialog::selectedFontChanged, 2))
101 return;
102 }
103 if (_c == QMetaObject::ReadProperty) {
104 void *_v = _a[0];
105 switch (_id) {
106 case 0: *reinterpret_cast<QFont*>(_v) = _t->selectedFont(); break;
107 default: break;
108 }
109 }
110 if (_c == QMetaObject::WriteProperty) {
111 void *_v = _a[0];
112 switch (_id) {
113 case 0: _t->setSelectedFont(*reinterpret_cast<QFont*>(_v)); break;
114 default: break;
115 }
116 }
117}
118
119const QMetaObject *FontDialog::metaObject() const
120{
121 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
122}
123
124void *FontDialog::qt_metacast(const char *_clname)
125{
126 if (!_clname) return nullptr;
127 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10FontDialogE_t>.strings))
128 return static_cast<void*>(this);
129 return QObject::qt_metacast(_clname);
130}
131
132int FontDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
133{
134 _id = QObject::qt_metacall(_c, _id, _a);
135 if (_id < 0)
136 return _id;
137 if (_c == QMetaObject::InvokeMetaMethod) {
138 if (_id < 4)
139 qt_static_metacall(this, _c, _id, _a);
140 _id -= 4;
141 }
142 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
143 if (_id < 4)
144 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
145 _id -= 4;
146 }
147 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
148 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
149 || _c == QMetaObject::RegisterPropertyMetaType) {
150 qt_static_metacall(this, _c, _id, _a);
151 _id -= 1;
152 }
153 return _id;
154}
155
156// SIGNAL 0
157void FontDialog::accepted()
158{
159 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
160}
161
162// SIGNAL 1
163void FontDialog::rejected()
164{
165 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
166}
167
168// SIGNAL 2
169void FontDialog::selectedFontChanged(const QFont & _t1)
170{
171 QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
172}
173QT_WARNING_POP