CuteLogger
Fast and simple logging solution for Qt based applications
moc_colorwheelitem.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'colorwheelitem.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/colorwheelitem.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 'colorwheelitem.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_CLASSColorWheelItemENDCLASS_t {};
40constexpr auto qt_meta_stringdata_CLASSColorWheelItemENDCLASS = QtMocHelpers::stringData(
41 "ColorWheelItem",
42 "colorChanged",
43 "",
44 "color",
45 "red",
46 "green",
47 "blue",
48 "redF",
49 "greenF",
50 "blueF",
51 "step"
52);
53#else // !QT_MOC_HAS_STRING_DATA
54struct qt_meta_stringdata_CLASSColorWheelItemENDCLASS_t {
55 uint offsetsAndSizes[22];
56 char stringdata0[15];
57 char stringdata1[13];
58 char stringdata2[1];
59 char stringdata3[6];
60 char stringdata4[4];
61 char stringdata5[6];
62 char stringdata6[5];
63 char stringdata7[5];
64 char stringdata8[7];
65 char stringdata9[6];
66 char stringdata10[5];
67};
68#define QT_MOC_LITERAL(ofs, len) \
69 uint(sizeof(qt_meta_stringdata_CLASSColorWheelItemENDCLASS_t::offsetsAndSizes) + ofs), len
70Q_CONSTINIT static const qt_meta_stringdata_CLASSColorWheelItemENDCLASS_t qt_meta_stringdata_CLASSColorWheelItemENDCLASS = {
71 {
72 QT_MOC_LITERAL(0, 14), // "ColorWheelItem"
73 QT_MOC_LITERAL(15, 12), // "colorChanged"
74 QT_MOC_LITERAL(28, 0), // ""
75 QT_MOC_LITERAL(29, 5), // "color"
76 QT_MOC_LITERAL(35, 3), // "red"
77 QT_MOC_LITERAL(39, 5), // "green"
78 QT_MOC_LITERAL(45, 4), // "blue"
79 QT_MOC_LITERAL(50, 4), // "redF"
80 QT_MOC_LITERAL(55, 6), // "greenF"
81 QT_MOC_LITERAL(62, 5), // "blueF"
82 QT_MOC_LITERAL(68, 4) // "step"
83 },
84 "ColorWheelItem",
85 "colorChanged",
86 "",
87 "color",
88 "red",
89 "green",
90 "blue",
91 "redF",
92 "greenF",
93 "blueF",
94 "step"
95};
96#undef QT_MOC_LITERAL
97#endif // !QT_MOC_HAS_STRING_DATA
98} // unnamed namespace
99
100Q_CONSTINIT static const uint qt_meta_data_CLASSColorWheelItemENDCLASS[] = {
101
102 // content:
103 12, // revision
104 0, // classname
105 0, 0, // classinfo
106 1, 14, // methods
107 8, 23, // properties
108 0, 0, // enums/sets
109 0, 0, // constructors
110 0, // flags
111 1, // signalCount
112
113 // signals: name, argc, parameters, tag, flags, initial metatype offsets
114 1, 1, 20, 2, 0x06, 9 /* Public */,
115
116 // signals: parameters
117 QMetaType::Void, QMetaType::QColor, 3,
118
119 // properties: name, type, flags
120 3, QMetaType::QColor, 0x00015103, uint(0), 0,
121 4, QMetaType::Int, 0x00015103, uint(-1), 0,
122 5, QMetaType::Int, 0x00015103, uint(-1), 0,
123 6, QMetaType::Int, 0x00015103, uint(-1), 0,
124 7, QMetaType::QReal, 0x00015103, uint(-1), 0,
125 8, QMetaType::QReal, 0x00015103, uint(-1), 0,
126 9, QMetaType::QReal, 0x00015103, uint(-1), 0,
127 10, QMetaType::QReal, 0x00015103, uint(-1), 0,
128
129 0 // eod
130};
131
132Q_CONSTINIT const QMetaObject ColorWheelItem::staticMetaObject = { {
133 QMetaObject::SuperData::link<QQuickPaintedItem::staticMetaObject>(),
134 qt_meta_stringdata_CLASSColorWheelItemENDCLASS.offsetsAndSizes,
135 qt_meta_data_CLASSColorWheelItemENDCLASS,
136 qt_static_metacall,
137 nullptr,
138 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSColorWheelItemENDCLASS_t,
139 // property 'color'
140 QtPrivate::TypeAndForceComplete<QColor, std::true_type>,
141 // property 'red'
142 QtPrivate::TypeAndForceComplete<int, std::true_type>,
143 // property 'green'
144 QtPrivate::TypeAndForceComplete<int, std::true_type>,
145 // property 'blue'
146 QtPrivate::TypeAndForceComplete<int, std::true_type>,
147 // property 'redF'
148 QtPrivate::TypeAndForceComplete<qreal, std::true_type>,
149 // property 'greenF'
150 QtPrivate::TypeAndForceComplete<qreal, std::true_type>,
151 // property 'blueF'
152 QtPrivate::TypeAndForceComplete<qreal, std::true_type>,
153 // property 'step'
154 QtPrivate::TypeAndForceComplete<qreal, std::true_type>,
155 // Q_OBJECT / Q_GADGET
156 QtPrivate::TypeAndForceComplete<ColorWheelItem, std::true_type>,
157 // method 'colorChanged'
158 QtPrivate::TypeAndForceComplete<void, std::false_type>,
159 QtPrivate::TypeAndForceComplete<const QColor &, std::false_type>
160 >,
161 nullptr
162} };
163
164void ColorWheelItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
165{
166 if (_c == QMetaObject::InvokeMetaMethod) {
167 auto *_t = static_cast<ColorWheelItem *>(_o);
168 (void)_t;
169 switch (_id) {
170 case 0: _t->colorChanged((*reinterpret_cast< std::add_pointer_t<QColor>>(_a[1]))); break;
171 default: ;
172 }
173 } else if (_c == QMetaObject::IndexOfMethod) {
174 int *result = reinterpret_cast<int *>(_a[0]);
175 {
176 using _t = void (ColorWheelItem::*)(const QColor & );
177 if (_t _q_method = &ColorWheelItem::colorChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
178 *result = 0;
179 return;
180 }
181 }
182 } else if (_c == QMetaObject::ReadProperty) {
183 auto *_t = static_cast<ColorWheelItem *>(_o);
184 (void)_t;
185 void *_v = _a[0];
186 switch (_id) {
187 case 0: *reinterpret_cast< QColor*>(_v) = _t->color(); break;
188 case 1: *reinterpret_cast< int*>(_v) = _t->red(); break;
189 case 2: *reinterpret_cast< int*>(_v) = _t->green(); break;
190 case 3: *reinterpret_cast< int*>(_v) = _t->blue(); break;
191 case 4: *reinterpret_cast< qreal*>(_v) = _t->redF(); break;
192 case 5: *reinterpret_cast< qreal*>(_v) = _t->greenF(); break;
193 case 6: *reinterpret_cast< qreal*>(_v) = _t->blueF(); break;
194 case 7: *reinterpret_cast< qreal*>(_v) = _t->step(); break;
195 default: break;
196 }
197 } else if (_c == QMetaObject::WriteProperty) {
198 auto *_t = static_cast<ColorWheelItem *>(_o);
199 (void)_t;
200 void *_v = _a[0];
201 switch (_id) {
202 case 0: _t->setColor(*reinterpret_cast< QColor*>(_v)); break;
203 case 1: _t->setRed(*reinterpret_cast< int*>(_v)); break;
204 case 2: _t->setGreen(*reinterpret_cast< int*>(_v)); break;
205 case 3: _t->setBlue(*reinterpret_cast< int*>(_v)); break;
206 case 4: _t->setRedF(*reinterpret_cast< qreal*>(_v)); break;
207 case 5: _t->setGreenF(*reinterpret_cast< qreal*>(_v)); break;
208 case 6: _t->setBlueF(*reinterpret_cast< qreal*>(_v)); break;
209 case 7: _t->setStep(*reinterpret_cast< qreal*>(_v)); break;
210 default: break;
211 }
212 } else if (_c == QMetaObject::ResetProperty) {
213 } else if (_c == QMetaObject::BindableProperty) {
214 }
215}
216
217const QMetaObject *ColorWheelItem::metaObject() const
218{
219 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
220}
221
222void *ColorWheelItem::qt_metacast(const char *_clname)
223{
224 if (!_clname) return nullptr;
225 if (!strcmp(_clname, qt_meta_stringdata_CLASSColorWheelItemENDCLASS.stringdata0))
226 return static_cast<void*>(this);
227 return QQuickPaintedItem::qt_metacast(_clname);
228}
229
230int ColorWheelItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
231{
232 _id = QQuickPaintedItem::qt_metacall(_c, _id, _a);
233 if (_id < 0)
234 return _id;
235 if (_c == QMetaObject::InvokeMetaMethod) {
236 if (_id < 1)
237 qt_static_metacall(this, _c, _id, _a);
238 _id -= 1;
239 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
240 if (_id < 1)
241 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
242 _id -= 1;
243 }else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
244 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
245 || _c == QMetaObject::RegisterPropertyMetaType) {
246 qt_static_metacall(this, _c, _id, _a);
247 _id -= 8;
248 }
249 return _id;
250}
251
252// SIGNAL 0
253void ColorWheelItem::colorChanged(const QColor & _t1)
254{
255 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
256 QMetaObject::activate(this, &staticMetaObject, 0, _a);
257}
258QT_WARNING_POP