CuteLogger
Fast and simple logging solution for Qt based applications
moc_colordialog.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'colordialog.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/qmltypes/colordialog.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 'colordialog.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_CLASSColorDialogENDCLASS_t {};
37constexpr auto qt_meta_stringdata_CLASSColorDialogENDCLASS = QtMocHelpers::stringData(
38 "ColorDialog",
39 "selectedColorChanged",
40 "",
41 "color",
42 "accepted",
43 "titleChanged",
44 "open",
45 "selectedColor",
46 "title"
47);
48#else // !QT_MOC_HAS_STRINGDATA
49#error "qtmochelpers.h not found or too old."
50#endif // !QT_MOC_HAS_STRINGDATA
51} // unnamed namespace
52
53Q_CONSTINIT static const uint qt_meta_data_CLASSColorDialogENDCLASS[] = {
54
55 // content:
56 12, // revision
57 0, // classname
58 0, 0, // classinfo
59 4, 14, // methods
60 2, 44, // properties
61 0, 0, // enums/sets
62 0, 0, // constructors
63 0, // flags
64 3, // signalCount
65
66 // signals: name, argc, parameters, tag, flags, initial metatype offsets
67 1, 1, 38, 2, 0x06, 3 /* Public */,
68 4, 0, 41, 2, 0x06, 5 /* Public */,
69 5, 0, 42, 2, 0x06, 6 /* Public */,
70
71 // methods: name, argc, parameters, tag, flags, initial metatype offsets
72 6, 0, 43, 2, 0x02, 7 /* Public */,
73
74 // signals: parameters
75 QMetaType::Void, QMetaType::QColor, 3,
76 QMetaType::Void,
77 QMetaType::Void,
78
79 // methods: parameters
80 QMetaType::Void,
81
82 // properties: name, type, flags
83 7, QMetaType::QColor, 0x00015103, uint(0), 0,
84 8, QMetaType::QString, 0x00015103, uint(2), 0,
85
86 0 // eod
87};
88
89Q_CONSTINIT const QMetaObject ColorDialog::staticMetaObject = { {
90 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
91 qt_meta_stringdata_CLASSColorDialogENDCLASS.offsetsAndSizes,
92 qt_meta_data_CLASSColorDialogENDCLASS,
93 qt_static_metacall,
94 nullptr,
95 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSColorDialogENDCLASS_t,
96 // property 'selectedColor'
97 QtPrivate::TypeAndForceComplete<QColor, std::true_type>,
98 // property 'title'
99 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
100 // Q_OBJECT / Q_GADGET
101 QtPrivate::TypeAndForceComplete<ColorDialog, std::true_type>,
102 // method 'selectedColorChanged'
103 QtPrivate::TypeAndForceComplete<void, std::false_type>,
104 QtPrivate::TypeAndForceComplete<const QColor &, std::false_type>,
105 // method 'accepted'
106 QtPrivate::TypeAndForceComplete<void, std::false_type>,
107 // method 'titleChanged'
108 QtPrivate::TypeAndForceComplete<void, std::false_type>,
109 // method 'open'
110 QtPrivate::TypeAndForceComplete<void, std::false_type>
111 >,
112 nullptr
113} };
114
115void ColorDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
116{
117 if (_c == QMetaObject::InvokeMetaMethod) {
118 auto *_t = static_cast<ColorDialog *>(_o);
119 (void)_t;
120 switch (_id) {
121 case 0: _t->selectedColorChanged((*reinterpret_cast< std::add_pointer_t<QColor>>(_a[1]))); break;
122 case 1: _t->accepted(); break;
123 case 2: _t->titleChanged(); break;
124 case 3: _t->open(); break;
125 default: ;
126 }
127 } else if (_c == QMetaObject::IndexOfMethod) {
128 int *result = reinterpret_cast<int *>(_a[0]);
129 {
130 using _t = void (ColorDialog::*)(const QColor & );
131 if (_t _q_method = &ColorDialog::selectedColorChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
132 *result = 0;
133 return;
134 }
135 }
136 {
137 using _t = void (ColorDialog::*)();
138 if (_t _q_method = &ColorDialog::accepted; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
139 *result = 1;
140 return;
141 }
142 }
143 {
144 using _t = void (ColorDialog::*)();
145 if (_t _q_method = &ColorDialog::titleChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
146 *result = 2;
147 return;
148 }
149 }
150 } else if (_c == QMetaObject::ReadProperty) {
151 auto *_t = static_cast<ColorDialog *>(_o);
152 (void)_t;
153 void *_v = _a[0];
154 switch (_id) {
155 case 0: *reinterpret_cast< QColor*>(_v) = _t->selectedColor(); break;
156 case 1: *reinterpret_cast< QString*>(_v) = _t->title(); break;
157 default: break;
158 }
159 } else if (_c == QMetaObject::WriteProperty) {
160 auto *_t = static_cast<ColorDialog *>(_o);
161 (void)_t;
162 void *_v = _a[0];
163 switch (_id) {
164 case 0: _t->setSelectedColor(*reinterpret_cast< QColor*>(_v)); break;
165 case 1: _t->setTitle(*reinterpret_cast< QString*>(_v)); break;
166 default: break;
167 }
168 } else if (_c == QMetaObject::ResetProperty) {
169 } else if (_c == QMetaObject::BindableProperty) {
170 }
171}
172
173const QMetaObject *ColorDialog::metaObject() const
174{
175 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
176}
177
178void *ColorDialog::qt_metacast(const char *_clname)
179{
180 if (!_clname) return nullptr;
181 if (!strcmp(_clname, qt_meta_stringdata_CLASSColorDialogENDCLASS.stringdata0))
182 return static_cast<void*>(this);
183 return QObject::qt_metacast(_clname);
184}
185
186int ColorDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
187{
188 _id = QObject::qt_metacall(_c, _id, _a);
189 if (_id < 0)
190 return _id;
191 if (_c == QMetaObject::InvokeMetaMethod) {
192 if (_id < 4)
193 qt_static_metacall(this, _c, _id, _a);
194 _id -= 4;
195 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
196 if (_id < 4)
197 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
198 _id -= 4;
199 }else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
200 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
201 || _c == QMetaObject::RegisterPropertyMetaType) {
202 qt_static_metacall(this, _c, _id, _a);
203 _id -= 2;
204 }
205 return _id;
206}
207
208// SIGNAL 0
209void ColorDialog::selectedColorChanged(const QColor & _t1)
210{
211 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
212 QMetaObject::activate(this, &staticMetaObject, 0, _a);
213}
214
215// SIGNAL 1
216void ColorDialog::accepted()
217{
218 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
219}
220
221// SIGNAL 2
222void ColorDialog::titleChanged()
223{
224 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
225}
226QT_WARNING_POP