1/****************************************************************************
2** Meta object code from reading C++ file 'qcolordialog.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include <memory>
10#include "dialogs/qcolordialog.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qcolordialog.h' doesn't include <QObject>."
15#elif Q_MOC_OUTPUT_REVISION != 68
16#error "This file was generated using the moc from 6.0.0. It"
17#error "cannot be used with the include files from this version of Qt."
18#error "(The moc has changed too much.)"
19#endif
20
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_QColorDialog_t {
25 const uint offsetsAndSize[50];
26 char stringdata0[299];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QColorDialog_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QColorDialog_t qt_meta_stringdata_QColorDialog = {
31 {
32QT_MOC_LITERAL(0, 12), // "QColorDialog"
33QT_MOC_LITERAL(13, 19), // "currentColorChanged"
34QT_MOC_LITERAL(33, 0), // ""
35QT_MOC_LITERAL(34, 5), // "color"
36QT_MOC_LITERAL(40, 13), // "colorSelected"
37QT_MOC_LITERAL(54, 12), // "_q_addCustom"
38QT_MOC_LITERAL(67, 9), // "_q_newHsv"
39QT_MOC_LITERAL(77, 1), // "h"
40QT_MOC_LITERAL(79, 1), // "s"
41QT_MOC_LITERAL(81, 1), // "v"
42QT_MOC_LITERAL(83, 18), // "_q_newColorTypedIn"
43QT_MOC_LITERAL(102, 4), // "QRgb"
44QT_MOC_LITERAL(107, 3), // "rgb"
45QT_MOC_LITERAL(111, 13), // "_q_nextCustom"
46QT_MOC_LITERAL(125, 12), // "_q_newCustom"
47QT_MOC_LITERAL(138, 14), // "_q_newStandard"
48QT_MOC_LITERAL(153, 18), // "_q_pickScreenColor"
49QT_MOC_LITERAL(172, 21), // "_q_updateColorPicking"
50QT_MOC_LITERAL(194, 12), // "currentColor"
51QT_MOC_LITERAL(207, 7), // "options"
52QT_MOC_LITERAL(215, 18), // "ColorDialogOptions"
53QT_MOC_LITERAL(234, 17), // "ColorDialogOption"
54QT_MOC_LITERAL(252, 16), // "ShowAlphaChannel"
55QT_MOC_LITERAL(269, 9), // "NoButtons"
56QT_MOC_LITERAL(279, 19) // "DontUseNativeDialog"
57
58 },
59 "QColorDialog\0currentColorChanged\0\0"
60 "color\0colorSelected\0_q_addCustom\0"
61 "_q_newHsv\0h\0s\0v\0_q_newColorTypedIn\0"
62 "QRgb\0rgb\0_q_nextCustom\0_q_newCustom\0"
63 "_q_newStandard\0_q_pickScreenColor\0"
64 "_q_updateColorPicking\0currentColor\0"
65 "options\0ColorDialogOptions\0ColorDialogOption\0"
66 "ShowAlphaChannel\0NoButtons\0"
67 "DontUseNativeDialog"
68};
69#undef QT_MOC_LITERAL
70
71static const uint qt_meta_data_QColorDialog[] = {
72
73 // content:
74 9, // revision
75 0, // classname
76 0, 0, // classinfo
77 10, 14, // methods
78 2, 108, // properties
79 1, 118, // enums/sets
80 0, 0, // constructors
81 0, // flags
82 2, // signalCount
83
84 // signals: name, argc, parameters, tag, flags, initial metatype offsets
85 1, 1, 74, 2, 0x06, 2 /* Public */,
86 4, 1, 77, 2, 0x06, 4 /* Public */,
87
88 // slots: name, argc, parameters, tag, flags, initial metatype offsets
89 5, 0, 80, 2, 0x08, 6 /* Private */,
90 6, 3, 81, 2, 0x08, 7 /* Private */,
91 10, 1, 88, 2, 0x08, 11 /* Private */,
92 13, 2, 91, 2, 0x08, 13 /* Private */,
93 14, 2, 96, 2, 0x08, 16 /* Private */,
94 15, 2, 101, 2, 0x08, 19 /* Private */,
95 16, 0, 106, 2, 0x08, 22 /* Private */,
96 17, 0, 107, 2, 0x08, 23 /* Private */,
97
98 // signals: parameters
99 QMetaType::Void, QMetaType::QColor, 3,
100 QMetaType::Void, QMetaType::QColor, 3,
101
102 // slots: parameters
103 QMetaType::Void,
104 QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 7, 8, 9,
105 QMetaType::Void, 0x80000000 | 11, 12,
106 QMetaType::Void, QMetaType::Int, QMetaType::Int, 2, 2,
107 QMetaType::Void, QMetaType::Int, QMetaType::Int, 2, 2,
108 QMetaType::Void, QMetaType::Int, QMetaType::Int, 2, 2,
109 QMetaType::Void,
110 QMetaType::Void,
111
112 // properties: name, type, flags
113 18, QMetaType::QColor, 0x00015103, uint(0), 0,
114 19, 0x80000000 | 20, 0x0001510b, uint(-1), 0,
115
116 // enums: name, alias, flags, count, data
117 21, 21, 0x0, 3, 123,
118
119 // enum data: key, value
120 22, uint(QColorDialog::ShowAlphaChannel),
121 23, uint(QColorDialog::NoButtons),
122 24, uint(QColorDialog::DontUseNativeDialog),
123
124 0 // eod
125};
126
127void QColorDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
128{
129 if (_c == QMetaObject::InvokeMetaMethod) {
130 Q_ASSERT(staticMetaObject.cast(_o));
131 auto *_t = static_cast<QColorDialog *>(_o);
132 Q_UNUSED(_t)
133 switch (_id) {
134 case 0: _t->currentColorChanged((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
135 case 1: _t->colorSelected((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
136 case 2: _t->d_func()->_q_addCustom(); break;
137 case 3: _t->d_func()->_q_newHsv((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
138 case 4: _t->d_func()->_q_newColorTypedIn((*reinterpret_cast< QRgb(*)>(_a[1]))); break;
139 case 5: _t->d_func()->_q_nextCustom((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
140 case 6: _t->d_func()->_q_newCustom((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
141 case 7: _t->d_func()->_q_newStandard((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
142 case 8: _t->d_func()->_q_pickScreenColor(); break;
143 case 9: _t->d_func()->_q_updateColorPicking(); break;
144 default: ;
145 }
146 } else if (_c == QMetaObject::IndexOfMethod) {
147 int *result = reinterpret_cast<int *>(_a[0]);
148 {
149 using _t = void (QColorDialog::*)(const QColor & );
150 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QColorDialog::currentColorChanged)) {
151 *result = 0;
152 return;
153 }
154 }
155 {
156 using _t = void (QColorDialog::*)(const QColor & );
157 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QColorDialog::colorSelected)) {
158 *result = 1;
159 return;
160 }
161 }
162 }
163#ifndef QT_NO_PROPERTIES
164 else if (_c == QMetaObject::ReadProperty) {
165 Q_ASSERT(staticMetaObject.cast(_o));
166 auto *_t = static_cast<QColorDialog *>(_o);
167 Q_UNUSED(_t)
168 void *_v = _a[0];
169 switch (_id) {
170 case 0: *reinterpret_cast< QColor*>(_v) = _t->currentColor(); break;
171 case 1: *reinterpret_cast< ColorDialogOptions*>(_v) = _t->options(); break;
172 default: break;
173 }
174 } else if (_c == QMetaObject::WriteProperty) {
175 Q_ASSERT(staticMetaObject.cast(_o));
176 auto *_t = static_cast<QColorDialog *>(_o);
177 Q_UNUSED(_t)
178 void *_v = _a[0];
179 switch (_id) {
180 case 0: _t->setCurrentColor(*reinterpret_cast< QColor*>(_v)); break;
181 case 1: _t->setOptions(*reinterpret_cast< ColorDialogOptions*>(_v)); break;
182 default: break;
183 }
184 } else if (_c == QMetaObject::ResetProperty) {
185 } else if (_c == QMetaObject::BindableProperty) {
186 }
187#endif // QT_NO_PROPERTIES
188}
189
190const QMetaObject QColorDialog::staticMetaObject = { {
191 QMetaObject::SuperData::link<QDialog::staticMetaObject>(),
192 qt_meta_stringdata_QColorDialog.offsetsAndSize,
193 qt_meta_data_QColorDialog,
194 qt_static_metacall,
195 nullptr,
196qt_incomplete_metaTypeArray<qt_meta_stringdata_QColorDialog_t
197, QtPrivate::TypeAndForceComplete<QColor, std::true_type>, QtPrivate::TypeAndForceComplete<ColorDialogOptions, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QColor &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QColor &, std::false_type>
198, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QRgb, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
199
200
201>,
202 nullptr
203} };
204
205
206const QMetaObject *QColorDialog::metaObject() const
207{
208 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
209}
210
211void *QColorDialog::qt_metacast(const char *_clname)
212{
213 if (!_clname) return nullptr;
214 if (!strcmp(_clname, qt_meta_stringdata_QColorDialog.stringdata0))
215 return static_cast<void*>(this);
216 return QDialog::qt_metacast(_clname);
217}
218
219int QColorDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
220{
221 _id = QDialog::qt_metacall(_c, _id, _a);
222 if (_id < 0)
223 return _id;
224 if (_c == QMetaObject::InvokeMetaMethod) {
225 if (_id < 10)
226 qt_static_metacall(this, _c, _id, _a);
227 _id -= 10;
228 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
229 if (_id < 10)
230 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
231 _id -= 10;
232 }
233#ifndef QT_NO_PROPERTIES
234 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
235 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
236 || _c == QMetaObject::RegisterPropertyMetaType) {
237 qt_static_metacall(this, _c, _id, _a);
238 _id -= 2;
239 }
240#endif // QT_NO_PROPERTIES
241 return _id;
242}
243
244// SIGNAL 0
245void QColorDialog::currentColorChanged(const QColor & _t1)
246{
247 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
248 QMetaObject::activate(this, &staticMetaObject, 0, _a);
249}
250
251// SIGNAL 1
252void QColorDialog::colorSelected(const QColor & _t1)
253{
254 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
255 QMetaObject::activate(this, &staticMetaObject, 1, _a);
256}
257QT_WARNING_POP
258QT_END_MOC_NAMESPACE
259