CuteLogger
Fast and simple logging solution for Qt based applications
moc_colorwheel.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'colorwheel.h'
3**
4** Created by: The Qt Meta Object Compiler version 69 (Qt 6.9.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/widgets/colorwheel.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 'colorwheel.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 69
21#error "This file was generated using the moc from 6.9.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_ZN10ColorWheelE_t {};
35} // unnamed namespace
36
37template <> constexpr inline auto ColorWheel::qt_create_metaobjectdata<qt_meta_tag_ZN10ColorWheelE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "ColorWheel",
42 "colorChanged",
43 "",
44 "color",
45 "changeColor"
46 };
47
48 QtMocHelpers::UintData qt_methods {
49 // Signal 'colorChanged'
50 QtMocHelpers::SignalData<void(const QColor &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
51 { QMetaType::QColor, 3 },
52 }}),
53 // Slot 'changeColor'
54 QtMocHelpers::SlotData<void(const QColor &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
55 { QMetaType::QColor, 3 },
56 }}),
57 };
58 QtMocHelpers::UintData qt_properties {
59 };
60 QtMocHelpers::UintData qt_enums {
61 };
62 return QtMocHelpers::metaObjectData<ColorWheel, qt_meta_tag_ZN10ColorWheelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
63 qt_methods, qt_properties, qt_enums);
64}
65Q_CONSTINIT const QMetaObject ColorWheel::staticMetaObject = { {
66 QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
67 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10ColorWheelE_t>.stringdata,
68 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10ColorWheelE_t>.data,
69 qt_static_metacall,
70 nullptr,
71 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10ColorWheelE_t>.metaTypes,
72 nullptr
73} };
74
75void ColorWheel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
76{
77 auto *_t = static_cast<ColorWheel *>(_o);
78 if (_c == QMetaObject::InvokeMetaMethod) {
79 switch (_id) {
80 case 0: _t->colorChanged((*reinterpret_cast< std::add_pointer_t<QColor>>(_a[1]))); break;
81 case 1: _t->changeColor((*reinterpret_cast< std::add_pointer_t<QColor>>(_a[1]))); break;
82 default: ;
83 }
84 }
85 if (_c == QMetaObject::IndexOfMethod) {
86 if (QtMocHelpers::indexOfMethod<void (ColorWheel::*)(const QColor & )>(_a, &ColorWheel::colorChanged, 0))
87 return;
88 }
89}
90
91const QMetaObject *ColorWheel::metaObject() const
92{
93 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
94}
95
96void *ColorWheel::qt_metacast(const char *_clname)
97{
98 if (!_clname) return nullptr;
99 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10ColorWheelE_t>.strings))
100 return static_cast<void*>(this);
101 return QWidget::qt_metacast(_clname);
102}
103
104int ColorWheel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
105{
106 _id = QWidget::qt_metacall(_c, _id, _a);
107 if (_id < 0)
108 return _id;
109 if (_c == QMetaObject::InvokeMetaMethod) {
110 if (_id < 2)
111 qt_static_metacall(this, _c, _id, _a);
112 _id -= 2;
113 }
114 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
115 if (_id < 2)
116 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
117 _id -= 2;
118 }
119 return _id;
120}
121
122// SIGNAL 0
123void ColorWheel::colorChanged(const QColor & _t1)
124{
125 QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
126}
127QT_WARNING_POP