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