CuteLogger
Fast and simple logging solution for Qt based applications
moc_colorpickeritem.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'colorpickeritem.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.8.1)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/qmltypes/colorpickeritem.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 'colorpickeritem.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 68
21#error "This file was generated using the moc from 6.8.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_ZN15ColorPickerItemE_t {};
35} // unnamed namespace
36
37
38#ifdef QT_MOC_HAS_STRINGDATA
39static constexpr auto qt_meta_stringdata_ZN15ColorPickerItemE = QtMocHelpers::stringData(
40 "ColorPickerItem",
41 "pickColor",
42 "",
43 "colorPicked",
44 "color",
45 "cancelled",
46 "screenSelected",
47 "rect",
48 "grabColor"
49);
50#else // !QT_MOC_HAS_STRINGDATA
51#error "qtmochelpers.h not found or too old."
52#endif // !QT_MOC_HAS_STRINGDATA
53
54Q_CONSTINIT static const uint qt_meta_data_ZN15ColorPickerItemE[] = {
55
56 // content:
57 12, // revision
58 0, // classname
59 0, 0, // classinfo
60 5, 14, // methods
61 0, 0, // properties
62 0, 0, // enums/sets
63 0, 0, // constructors
64 0, // flags
65 3, // signalCount
66
67 // signals: name, argc, parameters, tag, flags, initial metatype offsets
68 1, 0, 44, 2, 0x06, 1 /* Public */,
69 3, 1, 45, 2, 0x06, 2 /* Public */,
70 5, 0, 48, 2, 0x06, 4 /* Public */,
71
72 // slots: name, argc, parameters, tag, flags, initial metatype offsets
73 6, 1, 49, 2, 0x08, 5 /* Private */,
74 8, 0, 52, 2, 0x08, 7 /* Private */,
75
76 // signals: parameters
77 QMetaType::Void,
78 QMetaType::Void, QMetaType::QColor, 4,
79 QMetaType::Void,
80
81 // slots: parameters
82 QMetaType::Void, QMetaType::QRect, 7,
83 QMetaType::Void,
84
85 0 // eod
86};
87
88Q_CONSTINIT const QMetaObject ColorPickerItem::staticMetaObject = { {
89 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
90 qt_meta_stringdata_ZN15ColorPickerItemE.offsetsAndSizes,
91 qt_meta_data_ZN15ColorPickerItemE,
92 qt_static_metacall,
93 nullptr,
94 qt_incomplete_metaTypeArray<qt_meta_tag_ZN15ColorPickerItemE_t,
95 // Q_OBJECT / Q_GADGET
96 QtPrivate::TypeAndForceComplete<ColorPickerItem, std::true_type>,
97 // method 'pickColor'
98 QtPrivate::TypeAndForceComplete<void, std::false_type>,
99 // method 'colorPicked'
100 QtPrivate::TypeAndForceComplete<void, std::false_type>,
101 QtPrivate::TypeAndForceComplete<const QColor &, std::false_type>,
102 // method 'cancelled'
103 QtPrivate::TypeAndForceComplete<void, std::false_type>,
104 // method 'screenSelected'
105 QtPrivate::TypeAndForceComplete<void, std::false_type>,
106 QtPrivate::TypeAndForceComplete<const QRect &, std::false_type>,
107 // method 'grabColor'
108 QtPrivate::TypeAndForceComplete<void, std::false_type>
109 >,
110 nullptr
111} };
112
113void ColorPickerItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
114{
115 auto *_t = static_cast<ColorPickerItem *>(_o);
116 if (_c == QMetaObject::InvokeMetaMethod) {
117 switch (_id) {
118 case 0: _t->pickColor(); break;
119 case 1: _t->colorPicked((*reinterpret_cast< std::add_pointer_t<QColor>>(_a[1]))); break;
120 case 2: _t->cancelled(); break;
121 case 3: _t->screenSelected((*reinterpret_cast< std::add_pointer_t<QRect>>(_a[1]))); break;
122 case 4: _t->grabColor(); break;
123 default: ;
124 }
125 }
126 if (_c == QMetaObject::IndexOfMethod) {
127 int *result = reinterpret_cast<int *>(_a[0]);
128 {
129 using _q_method_type = void (ColorPickerItem::*)();
130 if (_q_method_type _q_method = &ColorPickerItem::pickColor; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
131 *result = 0;
132 return;
133 }
134 }
135 {
136 using _q_method_type = void (ColorPickerItem::*)(const QColor & );
137 if (_q_method_type _q_method = &ColorPickerItem::colorPicked; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
138 *result = 1;
139 return;
140 }
141 }
142 {
143 using _q_method_type = void (ColorPickerItem::*)();
144 if (_q_method_type _q_method = &ColorPickerItem::cancelled; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
145 *result = 2;
146 return;
147 }
148 }
149 }
150}
151
152const QMetaObject *ColorPickerItem::metaObject() const
153{
154 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
155}
156
157void *ColorPickerItem::qt_metacast(const char *_clname)
158{
159 if (!_clname) return nullptr;
160 if (!strcmp(_clname, qt_meta_stringdata_ZN15ColorPickerItemE.stringdata0))
161 return static_cast<void*>(this);
162 return QObject::qt_metacast(_clname);
163}
164
165int ColorPickerItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
166{
167 _id = QObject::qt_metacall(_c, _id, _a);
168 if (_id < 0)
169 return _id;
170 if (_c == QMetaObject::InvokeMetaMethod) {
171 if (_id < 5)
172 qt_static_metacall(this, _c, _id, _a);
173 _id -= 5;
174 }
175 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
176 if (_id < 5)
177 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
178 _id -= 5;
179 }
180 return _id;
181}
182
183// SIGNAL 0
184void ColorPickerItem::pickColor()
185{
186 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
187}
188
189// SIGNAL 1
190void ColorPickerItem::colorPicked(const QColor & _t1)
191{
192 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
193 QMetaObject::activate(this, &staticMetaObject, 1, _a);
194}
195
196// SIGNAL 2
197void ColorPickerItem::cancelled()
198{
199 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
200}
201QT_WARNING_POP