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 69 (Qt 6.11.0)
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 != 69
21#error "This file was generated using the moc from 6.11.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_ZN14ColorWheelItemE_t {};
35} // unnamed namespace
36
37template <> constexpr inline auto ColorWheelItem::qt_create_metaobjectdata<qt_meta_tag_ZN14ColorWheelItemE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "ColorWheelItem",
42 "colorChanged",
43 "",
44 "QColor",
45 "color",
46 "red",
47 "green",
48 "blue",
49 "redF",
50 "greenF",
51 "blueF",
52 "step"
53 };
54
55 QtMocHelpers::UintData qt_methods {
56 // Signal 'colorChanged'
57 QtMocHelpers::SignalData<void(const QColor &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
58 { 0x80000000 | 3, 4 },
59 }}),
60 };
61 QtMocHelpers::UintData qt_properties {
62 // property 'color'
63 QtMocHelpers::PropertyData<QColor>(4, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
64 // property 'red'
65 QtMocHelpers::PropertyData<int>(5, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
66 // property 'green'
67 QtMocHelpers::PropertyData<int>(6, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
68 // property 'blue'
69 QtMocHelpers::PropertyData<int>(7, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
70 // property 'redF'
71 QtMocHelpers::PropertyData<qreal>(8, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
72 // property 'greenF'
73 QtMocHelpers::PropertyData<qreal>(9, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
74 // property 'blueF'
75 QtMocHelpers::PropertyData<qreal>(10, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
76 // property 'step'
77 QtMocHelpers::PropertyData<qreal>(11, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
78 };
79 QtMocHelpers::UintData qt_enums {
80 };
81 return QtMocHelpers::metaObjectData<ColorWheelItem, qt_meta_tag_ZN14ColorWheelItemE_t>(QMC::MetaObjectFlag{}, qt_stringData,
82 qt_methods, qt_properties, qt_enums);
83}
84Q_CONSTINIT const QMetaObject ColorWheelItem::staticMetaObject = { {
85 QMetaObject::SuperData::link<QQuickPaintedItem::staticMetaObject>(),
86 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14ColorWheelItemE_t>.stringdata,
87 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14ColorWheelItemE_t>.data,
88 qt_static_metacall,
89 nullptr,
90 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14ColorWheelItemE_t>.metaTypes,
91 nullptr
92} };
93
94void ColorWheelItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
95{
96 auto *_t = static_cast<ColorWheelItem *>(_o);
97 if (_c == QMetaObject::InvokeMetaMethod) {
98 switch (_id) {
99 case 0: _t->colorChanged((*reinterpret_cast<std::add_pointer_t<QColor>>(_a[1]))); break;
100 default: ;
101 }
102 }
103 if (_c == QMetaObject::IndexOfMethod) {
104 if (QtMocHelpers::indexOfMethod<void (ColorWheelItem::*)(const QColor & )>(_a, &ColorWheelItem::colorChanged, 0))
105 return;
106 }
107 if (_c == QMetaObject::ReadProperty) {
108 void *_v = _a[0];
109 switch (_id) {
110 case 0: *reinterpret_cast<QColor*>(_v) = _t->color(); break;
111 case 1: *reinterpret_cast<int*>(_v) = _t->red(); break;
112 case 2: *reinterpret_cast<int*>(_v) = _t->green(); break;
113 case 3: *reinterpret_cast<int*>(_v) = _t->blue(); break;
114 case 4: *reinterpret_cast<qreal*>(_v) = _t->redF(); break;
115 case 5: *reinterpret_cast<qreal*>(_v) = _t->greenF(); break;
116 case 6: *reinterpret_cast<qreal*>(_v) = _t->blueF(); break;
117 case 7: *reinterpret_cast<qreal*>(_v) = _t->step(); break;
118 default: break;
119 }
120 }
121 if (_c == QMetaObject::WriteProperty) {
122 void *_v = _a[0];
123 switch (_id) {
124 case 0: _t->setColor(*reinterpret_cast<QColor*>(_v)); break;
125 case 1: _t->setRed(*reinterpret_cast<int*>(_v)); break;
126 case 2: _t->setGreen(*reinterpret_cast<int*>(_v)); break;
127 case 3: _t->setBlue(*reinterpret_cast<int*>(_v)); break;
128 case 4: _t->setRedF(*reinterpret_cast<qreal*>(_v)); break;
129 case 5: _t->setGreenF(*reinterpret_cast<qreal*>(_v)); break;
130 case 6: _t->setBlueF(*reinterpret_cast<qreal*>(_v)); break;
131 case 7: _t->setStep(*reinterpret_cast<qreal*>(_v)); break;
132 default: break;
133 }
134 }
135}
136
137const QMetaObject *ColorWheelItem::metaObject() const
138{
139 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
140}
141
142void *ColorWheelItem::qt_metacast(const char *_clname)
143{
144 if (!_clname) return nullptr;
145 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14ColorWheelItemE_t>.strings))
146 return static_cast<void*>(this);
147 return QQuickPaintedItem::qt_metacast(_clname);
148}
149
150int ColorWheelItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
151{
152 _id = QQuickPaintedItem::qt_metacall(_c, _id, _a);
153 if (_id < 0)
154 return _id;
155 if (_c == QMetaObject::InvokeMetaMethod) {
156 if (_id < 1)
157 qt_static_metacall(this, _c, _id, _a);
158 _id -= 1;
159 }
160 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
161 if (_id < 1)
162 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
163 _id -= 1;
164 }
165 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
166 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
167 || _c == QMetaObject::RegisterPropertyMetaType) {
168 qt_static_metacall(this, _c, _id, _a);
169 _id -= 8;
170 }
171 return _id;
172}
173
174// SIGNAL 0
175void ColorWheelItem::colorChanged(const QColor & _t1)
176{
177 QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
178}
179QT_WARNING_POP