CuteLogger
Fast and simple logging solution for Qt based applications
moc_colordialog.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'colordialog.h'
3**
4** Created by: The Qt Meta Object Compiler version 69 (Qt 6.9.1)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/qmltypes/colordialog.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 'colordialog.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 69
21#error "This file was generated using the moc from 6.9.1. 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_ZN11ColorDialogE_t {};
35} // unnamed namespace
36
37template <> constexpr inline auto ColorDialog::qt_create_metaobjectdata<qt_meta_tag_ZN11ColorDialogE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "ColorDialog",
42 "selectedColorChanged",
43 "",
44 "color",
45 "accepted",
46 "titleChanged",
47 "open",
48 "selectedColor",
49 "title"
50 };
51
52 QtMocHelpers::UintData qt_methods {
53 // Signal 'selectedColorChanged'
54 QtMocHelpers::SignalData<void(const QColor &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
55 { QMetaType::QColor, 3 },
56 }}),
57 // Signal 'accepted'
58 QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
59 // Signal 'titleChanged'
60 QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
61 // Method 'open'
62 QtMocHelpers::MethodData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
63 };
64 QtMocHelpers::UintData qt_properties {
65 // property 'selectedColor'
66 QtMocHelpers::PropertyData<QColor>(7, QMetaType::QColor, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
67 // property 'title'
68 QtMocHelpers::PropertyData<QString>(8, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
69 };
70 QtMocHelpers::UintData qt_enums {
71 };
72 return QtMocHelpers::metaObjectData<ColorDialog, qt_meta_tag_ZN11ColorDialogE_t>(QMC::MetaObjectFlag{}, qt_stringData,
73 qt_methods, qt_properties, qt_enums);
74}
75Q_CONSTINIT const QMetaObject ColorDialog::staticMetaObject = { {
76 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
77 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ColorDialogE_t>.stringdata,
78 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ColorDialogE_t>.data,
79 qt_static_metacall,
80 nullptr,
81 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11ColorDialogE_t>.metaTypes,
82 nullptr
83} };
84
85void ColorDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
86{
87 auto *_t = static_cast<ColorDialog *>(_o);
88 if (_c == QMetaObject::InvokeMetaMethod) {
89 switch (_id) {
90 case 0: _t->selectedColorChanged((*reinterpret_cast< std::add_pointer_t<QColor>>(_a[1]))); break;
91 case 1: _t->accepted(); break;
92 case 2: _t->titleChanged(); break;
93 case 3: _t->open(); break;
94 default: ;
95 }
96 }
97 if (_c == QMetaObject::IndexOfMethod) {
98 if (QtMocHelpers::indexOfMethod<void (ColorDialog::*)(const QColor & )>(_a, &ColorDialog::selectedColorChanged, 0))
99 return;
100 if (QtMocHelpers::indexOfMethod<void (ColorDialog::*)()>(_a, &ColorDialog::accepted, 1))
101 return;
102 if (QtMocHelpers::indexOfMethod<void (ColorDialog::*)()>(_a, &ColorDialog::titleChanged, 2))
103 return;
104 }
105 if (_c == QMetaObject::ReadProperty) {
106 void *_v = _a[0];
107 switch (_id) {
108 case 0: *reinterpret_cast<QColor*>(_v) = _t->selectedColor(); break;
109 case 1: *reinterpret_cast<QString*>(_v) = _t->title(); break;
110 default: break;
111 }
112 }
113 if (_c == QMetaObject::WriteProperty) {
114 void *_v = _a[0];
115 switch (_id) {
116 case 0: _t->setSelectedColor(*reinterpret_cast<QColor*>(_v)); break;
117 case 1: _t->setTitle(*reinterpret_cast<QString*>(_v)); break;
118 default: break;
119 }
120 }
121}
122
123const QMetaObject *ColorDialog::metaObject() const
124{
125 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
126}
127
128void *ColorDialog::qt_metacast(const char *_clname)
129{
130 if (!_clname) return nullptr;
131 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ColorDialogE_t>.strings))
132 return static_cast<void*>(this);
133 return QObject::qt_metacast(_clname);
134}
135
136int ColorDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
137{
138 _id = QObject::qt_metacall(_c, _id, _a);
139 if (_id < 0)
140 return _id;
141 if (_c == QMetaObject::InvokeMetaMethod) {
142 if (_id < 4)
143 qt_static_metacall(this, _c, _id, _a);
144 _id -= 4;
145 }
146 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
147 if (_id < 4)
148 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
149 _id -= 4;
150 }
151 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
152 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
153 || _c == QMetaObject::RegisterPropertyMetaType) {
154 qt_static_metacall(this, _c, _id, _a);
155 _id -= 2;
156 }
157 return _id;
158}
159
160// SIGNAL 0
161void ColorDialog::selectedColorChanged(const QColor & _t1)
162{
163 QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
164}
165
166// SIGNAL 1
167void ColorDialog::accepted()
168{
169 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
170}
171
172// SIGNAL 2
173void ColorDialog::titleChanged()
174{
175 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
176}
177QT_WARNING_POP