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