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