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 68 (Qt 6.7.2)
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 != 68
21#error "This file was generated using the moc from 6.7.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 {
34
35#ifdef QT_MOC_HAS_STRINGDATA
36struct qt_meta_stringdata_CLASSColorWheelENDCLASS_t {};
37constexpr auto qt_meta_stringdata_CLASSColorWheelENDCLASS = QtMocHelpers::stringData(
38 "ColorWheel",
39 "colorChanged",
40 "",
41 "color",
42 "changeColor"
43);
44#else // !QT_MOC_HAS_STRINGDATA
45#error "qtmochelpers.h not found or too old."
46#endif // !QT_MOC_HAS_STRINGDATA
47} // unnamed namespace
48
49Q_CONSTINIT static const uint qt_meta_data_CLASSColorWheelENDCLASS[] = {
50
51 // content:
52 12, // revision
53 0, // classname
54 0, 0, // classinfo
55 2, 14, // methods
56 0, 0, // properties
57 0, 0, // enums/sets
58 0, 0, // constructors
59 0, // flags
60 1, // signalCount
61
62 // signals: name, argc, parameters, tag, flags, initial metatype offsets
63 1, 1, 26, 2, 0x06, 1 /* Public */,
64
65 // slots: name, argc, parameters, tag, flags, initial metatype offsets
66 4, 1, 29, 2, 0x0a, 3 /* Public */,
67
68 // signals: parameters
69 QMetaType::Void, QMetaType::QColor, 3,
70
71 // slots: parameters
72 QMetaType::Void, QMetaType::QColor, 3,
73
74 0 // eod
75};
76
77Q_CONSTINIT const QMetaObject ColorWheel::staticMetaObject = { {
78 QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
79 qt_meta_stringdata_CLASSColorWheelENDCLASS.offsetsAndSizes,
80 qt_meta_data_CLASSColorWheelENDCLASS,
81 qt_static_metacall,
82 nullptr,
83 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSColorWheelENDCLASS_t,
84 // Q_OBJECT / Q_GADGET
85 QtPrivate::TypeAndForceComplete<ColorWheel, std::true_type>,
86 // method 'colorChanged'
87 QtPrivate::TypeAndForceComplete<void, std::false_type>,
88 QtPrivate::TypeAndForceComplete<const QColor &, std::false_type>,
89 // method 'changeColor'
90 QtPrivate::TypeAndForceComplete<void, std::false_type>,
91 QtPrivate::TypeAndForceComplete<const QColor &, std::false_type>
92 >,
93 nullptr
94} };
95
96void ColorWheel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
97{
98 if (_c == QMetaObject::InvokeMetaMethod) {
99 auto *_t = static_cast<ColorWheel *>(_o);
100 (void)_t;
101 switch (_id) {
102 case 0: _t->colorChanged((*reinterpret_cast< std::add_pointer_t<QColor>>(_a[1]))); break;
103 case 1: _t->changeColor((*reinterpret_cast< std::add_pointer_t<QColor>>(_a[1]))); break;
104 default: ;
105 }
106 } else if (_c == QMetaObject::IndexOfMethod) {
107 int *result = reinterpret_cast<int *>(_a[0]);
108 {
109 using _t = void (ColorWheel::*)(const QColor & );
110 if (_t _q_method = &ColorWheel::colorChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
111 *result = 0;
112 return;
113 }
114 }
115 }
116}
117
118const QMetaObject *ColorWheel::metaObject() const
119{
120 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
121}
122
123void *ColorWheel::qt_metacast(const char *_clname)
124{
125 if (!_clname) return nullptr;
126 if (!strcmp(_clname, qt_meta_stringdata_CLASSColorWheelENDCLASS.stringdata0))
127 return static_cast<void*>(this);
128 return QWidget::qt_metacast(_clname);
129}
130
131int ColorWheel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
132{
133 _id = QWidget::qt_metacall(_c, _id, _a);
134 if (_id < 0)
135 return _id;
136 if (_c == QMetaObject::InvokeMetaMethod) {
137 if (_id < 2)
138 qt_static_metacall(this, _c, _id, _a);
139 _id -= 2;
140 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
141 if (_id < 2)
142 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
143 _id -= 2;
144 }
145 return _id;
146}
147
148// SIGNAL 0
149void ColorWheel::colorChanged(const QColor & _t1)
150{
151 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
152 QMetaObject::activate(this, &staticMetaObject, 0, _a);
153}
154QT_WARNING_POP