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.6.2)
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#if __has_include(<QtCore/qtmochelpers.h>)
13#include <QtCore/qtmochelpers.h>
14#else
15QT_BEGIN_MOC_NAMESPACE
16#endif
17
18
19#include <memory>
20
21#if !defined(Q_MOC_OUTPUT_REVISION)
22#error "The header file 'colordialog.h' doesn't include <QObject>."
23#elif Q_MOC_OUTPUT_REVISION != 68
24#error "This file was generated using the moc from 6.6.2. It"
25#error "cannot be used with the include files from this version of Qt."
26#error "(The moc has changed too much.)"
27#endif
28
29#ifndef Q_CONSTINIT
30#define Q_CONSTINIT
31#endif
32
33QT_WARNING_PUSH
34QT_WARNING_DISABLE_DEPRECATED
35QT_WARNING_DISABLE_GCC("-Wuseless-cast")
36namespace {
37
38#ifdef QT_MOC_HAS_STRINGDATA
39struct qt_meta_stringdata_CLASSColorDialogENDCLASS_t {};
40constexpr auto qt_meta_stringdata_CLASSColorDialogENDCLASS = QtMocHelpers::stringData(
41 "ColorDialog",
42 "selectedColorChanged",
43 "",
44 "color",
45 "accepted",
46 "titleChanged",
47 "open",
48 "selectedColor",
49 "title"
50);
51#else // !QT_MOC_HAS_STRING_DATA
52struct qt_meta_stringdata_CLASSColorDialogENDCLASS_t {
53 uint offsetsAndSizes[18];
54 char stringdata0[12];
55 char stringdata1[21];
56 char stringdata2[1];
57 char stringdata3[6];
58 char stringdata4[9];
59 char stringdata5[13];
60 char stringdata6[5];
61 char stringdata7[14];
62 char stringdata8[6];
63};
64#define QT_MOC_LITERAL(ofs, len) \
65 uint(sizeof(qt_meta_stringdata_CLASSColorDialogENDCLASS_t::offsetsAndSizes) + ofs), len
66Q_CONSTINIT static const qt_meta_stringdata_CLASSColorDialogENDCLASS_t qt_meta_stringdata_CLASSColorDialogENDCLASS = {
67 {
68 QT_MOC_LITERAL(0, 11), // "ColorDialog"
69 QT_MOC_LITERAL(12, 20), // "selectedColorChanged"
70 QT_MOC_LITERAL(33, 0), // ""
71 QT_MOC_LITERAL(34, 5), // "color"
72 QT_MOC_LITERAL(40, 8), // "accepted"
73 QT_MOC_LITERAL(49, 12), // "titleChanged"
74 QT_MOC_LITERAL(62, 4), // "open"
75 QT_MOC_LITERAL(67, 13), // "selectedColor"
76 QT_MOC_LITERAL(81, 5) // "title"
77 },
78 "ColorDialog",
79 "selectedColorChanged",
80 "",
81 "color",
82 "accepted",
83 "titleChanged",
84 "open",
85 "selectedColor",
86 "title"
87};
88#undef QT_MOC_LITERAL
89#endif // !QT_MOC_HAS_STRING_DATA
90} // unnamed namespace
91
92Q_CONSTINIT static const uint qt_meta_data_CLASSColorDialogENDCLASS[] = {
93
94 // content:
95 12, // revision
96 0, // classname
97 0, 0, // classinfo
98 4, 14, // methods
99 2, 44, // properties
100 0, 0, // enums/sets
101 0, 0, // constructors
102 0, // flags
103 3, // signalCount
104
105 // signals: name, argc, parameters, tag, flags, initial metatype offsets
106 1, 1, 38, 2, 0x06, 3 /* Public */,
107 4, 0, 41, 2, 0x06, 5 /* Public */,
108 5, 0, 42, 2, 0x06, 6 /* Public */,
109
110 // methods: name, argc, parameters, tag, flags, initial metatype offsets
111 6, 0, 43, 2, 0x02, 7 /* Public */,
112
113 // signals: parameters
114 QMetaType::Void, QMetaType::QColor, 3,
115 QMetaType::Void,
116 QMetaType::Void,
117
118 // methods: parameters
119 QMetaType::Void,
120
121 // properties: name, type, flags
122 7, QMetaType::QColor, 0x00015103, uint(0), 0,
123 8, QMetaType::QString, 0x00015103, uint(2), 0,
124
125 0 // eod
126};
127
128Q_CONSTINIT const QMetaObject ColorDialog::staticMetaObject = { {
129 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
130 qt_meta_stringdata_CLASSColorDialogENDCLASS.offsetsAndSizes,
131 qt_meta_data_CLASSColorDialogENDCLASS,
132 qt_static_metacall,
133 nullptr,
134 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSColorDialogENDCLASS_t,
135 // property 'selectedColor'
136 QtPrivate::TypeAndForceComplete<QColor, std::true_type>,
137 // property 'title'
138 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
139 // Q_OBJECT / Q_GADGET
140 QtPrivate::TypeAndForceComplete<ColorDialog, std::true_type>,
141 // method 'selectedColorChanged'
142 QtPrivate::TypeAndForceComplete<void, std::false_type>,
143 QtPrivate::TypeAndForceComplete<const QColor &, std::false_type>,
144 // method 'accepted'
145 QtPrivate::TypeAndForceComplete<void, std::false_type>,
146 // method 'titleChanged'
147 QtPrivate::TypeAndForceComplete<void, std::false_type>,
148 // method 'open'
149 QtPrivate::TypeAndForceComplete<void, std::false_type>
150 >,
151 nullptr
152} };
153
154void ColorDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
155{
156 if (_c == QMetaObject::InvokeMetaMethod) {
157 auto *_t = static_cast<ColorDialog *>(_o);
158 (void)_t;
159 switch (_id) {
160 case 0: _t->selectedColorChanged((*reinterpret_cast< std::add_pointer_t<QColor>>(_a[1]))); break;
161 case 1: _t->accepted(); break;
162 case 2: _t->titleChanged(); break;
163 case 3: _t->open(); break;
164 default: ;
165 }
166 } else if (_c == QMetaObject::IndexOfMethod) {
167 int *result = reinterpret_cast<int *>(_a[0]);
168 {
169 using _t = void (ColorDialog::*)(const QColor & );
170 if (_t _q_method = &ColorDialog::selectedColorChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
171 *result = 0;
172 return;
173 }
174 }
175 {
176 using _t = void (ColorDialog::*)();
177 if (_t _q_method = &ColorDialog::accepted; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
178 *result = 1;
179 return;
180 }
181 }
182 {
183 using _t = void (ColorDialog::*)();
184 if (_t _q_method = &ColorDialog::titleChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
185 *result = 2;
186 return;
187 }
188 }
189 } else if (_c == QMetaObject::ReadProperty) {
190 auto *_t = static_cast<ColorDialog *>(_o);
191 (void)_t;
192 void *_v = _a[0];
193 switch (_id) {
194 case 0: *reinterpret_cast< QColor*>(_v) = _t->selectedColor(); break;
195 case 1: *reinterpret_cast< QString*>(_v) = _t->title(); break;
196 default: break;
197 }
198 } else if (_c == QMetaObject::WriteProperty) {
199 auto *_t = static_cast<ColorDialog *>(_o);
200 (void)_t;
201 void *_v = _a[0];
202 switch (_id) {
203 case 0: _t->setSelectedColor(*reinterpret_cast< QColor*>(_v)); break;
204 case 1: _t->setTitle(*reinterpret_cast< QString*>(_v)); break;
205 default: break;
206 }
207 } else if (_c == QMetaObject::ResetProperty) {
208 } else if (_c == QMetaObject::BindableProperty) {
209 }
210}
211
212const QMetaObject *ColorDialog::metaObject() const
213{
214 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
215}
216
217void *ColorDialog::qt_metacast(const char *_clname)
218{
219 if (!_clname) return nullptr;
220 if (!strcmp(_clname, qt_meta_stringdata_CLASSColorDialogENDCLASS.stringdata0))
221 return static_cast<void*>(this);
222 return QObject::qt_metacast(_clname);
223}
224
225int ColorDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
226{
227 _id = QObject::qt_metacall(_c, _id, _a);
228 if (_id < 0)
229 return _id;
230 if (_c == QMetaObject::InvokeMetaMethod) {
231 if (_id < 4)
232 qt_static_metacall(this, _c, _id, _a);
233 _id -= 4;
234 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
235 if (_id < 4)
236 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
237 _id -= 4;
238 }else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
239 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
240 || _c == QMetaObject::RegisterPropertyMetaType) {
241 qt_static_metacall(this, _c, _id, _a);
242 _id -= 2;
243 }
244 return _id;
245}
246
247// SIGNAL 0
248void ColorDialog::selectedColorChanged(const QColor & _t1)
249{
250 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
251 QMetaObject::activate(this, &staticMetaObject, 0, _a);
252}
253
254// SIGNAL 1
255void ColorDialog::accepted()
256{
257 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
258}
259
260// SIGNAL 2
261void ColorDialog::titleChanged()
262{
263 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
264}
265QT_WARNING_POP