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