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