| 1 | /**************************************************************************** |
| 2 | ** Meta object code from reading C++ file 'qcolordialog.cpp' |
| 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 <QtCore/qbytearray.h> |
| 11 | #include <QtCore/qmetatype.h> |
| 12 | #if !defined(Q_MOC_OUTPUT_REVISION) |
| 13 | #error "The header file 'qcolordialog.cpp' doesn't include <QObject>." |
| 14 | #elif Q_MOC_OUTPUT_REVISION != 68 |
| 15 | #error "This file was generated using the moc from 6.0.0. It" |
| 16 | #error "cannot be used with the include files from this version of Qt." |
| 17 | #error "(The moc has changed too much.)" |
| 18 | #endif |
| 19 | |
| 20 | QT_BEGIN_MOC_NAMESPACE |
| 21 | QT_WARNING_PUSH |
| 22 | QT_WARNING_DISABLE_DEPRECATED |
| 23 | struct qt_meta_stringdata_QWellArray_t { |
| 24 | const uint offsetsAndSize[24]; |
| 25 | char stringdata0[101]; |
| 26 | }; |
| 27 | #define QT_MOC_LITERAL(ofs, len) \ |
| 28 | uint(offsetof(qt_meta_stringdata_QWellArray_t, stringdata0) + ofs), len |
| 29 | static const qt_meta_stringdata_QWellArray_t qt_meta_stringdata_QWellArray = { |
| 30 | { |
| 31 | QT_MOC_LITERAL(0, 10), // "QWellArray" |
| 32 | QT_MOC_LITERAL(11, 8), // "selected" |
| 33 | QT_MOC_LITERAL(20, 0), // "" |
| 34 | QT_MOC_LITERAL(21, 3), // "row" |
| 35 | QT_MOC_LITERAL(25, 3), // "col" |
| 36 | QT_MOC_LITERAL(29, 14), // "currentChanged" |
| 37 | QT_MOC_LITERAL(44, 12), // "colorChanged" |
| 38 | QT_MOC_LITERAL(57, 5), // "index" |
| 39 | QT_MOC_LITERAL(63, 4), // "QRgb" |
| 40 | QT_MOC_LITERAL(68, 5), // "color" |
| 41 | QT_MOC_LITERAL(74, 14), // "selectedColumn" |
| 42 | QT_MOC_LITERAL(89, 11) // "selectedRow" |
| 43 | |
| 44 | }, |
| 45 | "QWellArray\0selected\0\0row\0col\0" |
| 46 | "currentChanged\0colorChanged\0index\0" |
| 47 | "QRgb\0color\0selectedColumn\0selectedRow" |
| 48 | }; |
| 49 | #undef QT_MOC_LITERAL |
| 50 | |
| 51 | static const uint qt_meta_data_QWellArray[] = { |
| 52 | |
| 53 | // content: |
| 54 | 9, // revision |
| 55 | 0, // classname |
| 56 | 0, 0, // classinfo |
| 57 | 3, 14, // methods |
| 58 | 2, 47, // properties |
| 59 | 0, 0, // enums/sets |
| 60 | 0, 0, // constructors |
| 61 | 0, // flags |
| 62 | 3, // signalCount |
| 63 | |
| 64 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
| 65 | 1, 2, 32, 2, 0x06, 2 /* Public */, |
| 66 | 5, 2, 37, 2, 0x06, 5 /* Public */, |
| 67 | 6, 2, 42, 2, 0x06, 8 /* Public */, |
| 68 | |
| 69 | // signals: parameters |
| 70 | QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 4, |
| 71 | QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 4, |
| 72 | QMetaType::Void, QMetaType::Int, 0x80000000 | 8, 7, 9, |
| 73 | |
| 74 | // properties: name, type, flags |
| 75 | 10, QMetaType::Int, 0x00015001, uint(-1), 0, |
| 76 | 11, QMetaType::Int, 0x00015001, uint(-1), 0, |
| 77 | |
| 78 | 0 // eod |
| 79 | }; |
| 80 | |
| 81 | void QWellArray::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 82 | { |
| 83 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 84 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 85 | auto *_t = static_cast<QWellArray *>(_o); |
| 86 | Q_UNUSED(_t) |
| 87 | switch (_id) { |
| 88 | case 0: _t->selected((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; |
| 89 | case 1: _t->currentChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; |
| 90 | case 2: _t->colorChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QRgb(*)>(_a[2]))); break; |
| 91 | default: ; |
| 92 | } |
| 93 | } else if (_c == QMetaObject::IndexOfMethod) { |
| 94 | int *result = reinterpret_cast<int *>(_a[0]); |
| 95 | { |
| 96 | using _t = void (QWellArray::*)(int , int ); |
| 97 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QWellArray::selected)) { |
| 98 | *result = 0; |
| 99 | return; |
| 100 | } |
| 101 | } |
| 102 | { |
| 103 | using _t = void (QWellArray::*)(int , int ); |
| 104 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QWellArray::currentChanged)) { |
| 105 | *result = 1; |
| 106 | return; |
| 107 | } |
| 108 | } |
| 109 | { |
| 110 | using _t = void (QWellArray::*)(int , QRgb ); |
| 111 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QWellArray::colorChanged)) { |
| 112 | *result = 2; |
| 113 | return; |
| 114 | } |
| 115 | } |
| 116 | } |
| 117 | #ifndef QT_NO_PROPERTIES |
| 118 | else if (_c == QMetaObject::ReadProperty) { |
| 119 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 120 | auto *_t = static_cast<QWellArray *>(_o); |
| 121 | Q_UNUSED(_t) |
| 122 | void *_v = _a[0]; |
| 123 | switch (_id) { |
| 124 | case 0: *reinterpret_cast< int*>(_v) = _t->selectedColumn(); break; |
| 125 | case 1: *reinterpret_cast< int*>(_v) = _t->selectedRow(); break; |
| 126 | default: break; |
| 127 | } |
| 128 | } else if (_c == QMetaObject::WriteProperty) { |
| 129 | } else if (_c == QMetaObject::ResetProperty) { |
| 130 | } else if (_c == QMetaObject::BindableProperty) { |
| 131 | } |
| 132 | #endif // QT_NO_PROPERTIES |
| 133 | } |
| 134 | |
| 135 | const QMetaObject QWellArray::staticMetaObject = { { |
| 136 | QMetaObject::SuperData::link<QWidget::staticMetaObject>(), |
| 137 | qt_meta_stringdata_QWellArray.offsetsAndSize, |
| 138 | qt_meta_data_QWellArray, |
| 139 | qt_static_metacall, |
| 140 | nullptr, |
| 141 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QWellArray_t |
| 142 | , QtPrivate::TypeAndForceComplete<int, std::true_type>, QtPrivate::TypeAndForceComplete<int, std::true_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<QRgb, std::false_type> |
| 143 | |
| 144 | |
| 145 | |
| 146 | >, |
| 147 | nullptr |
| 148 | } }; |
| 149 | |
| 150 | |
| 151 | const QMetaObject *QWellArray::metaObject() const |
| 152 | { |
| 153 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 154 | } |
| 155 | |
| 156 | void *QWellArray::qt_metacast(const char *_clname) |
| 157 | { |
| 158 | if (!_clname) return nullptr; |
| 159 | if (!strcmp(_clname, qt_meta_stringdata_QWellArray.stringdata0)) |
| 160 | return static_cast<void*>(this); |
| 161 | return QWidget::qt_metacast(_clname); |
| 162 | } |
| 163 | |
| 164 | int QWellArray::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
| 165 | { |
| 166 | _id = QWidget::qt_metacall(_c, _id, _a); |
| 167 | if (_id < 0) |
| 168 | return _id; |
| 169 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 170 | if (_id < 3) |
| 171 | qt_static_metacall(this, _c, _id, _a); |
| 172 | _id -= 3; |
| 173 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 174 | if (_id < 3) |
| 175 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
| 176 | _id -= 3; |
| 177 | } |
| 178 | #ifndef QT_NO_PROPERTIES |
| 179 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty |
| 180 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty |
| 181 | || _c == QMetaObject::RegisterPropertyMetaType) { |
| 182 | qt_static_metacall(this, _c, _id, _a); |
| 183 | _id -= 2; |
| 184 | } |
| 185 | #endif // QT_NO_PROPERTIES |
| 186 | return _id; |
| 187 | } |
| 188 | |
| 189 | // SIGNAL 0 |
| 190 | void QWellArray::selected(int _t1, int _t2) |
| 191 | { |
| 192 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) }; |
| 193 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
| 194 | } |
| 195 | |
| 196 | // SIGNAL 1 |
| 197 | void QWellArray::currentChanged(int _t1, int _t2) |
| 198 | { |
| 199 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) }; |
| 200 | QMetaObject::activate(this, &staticMetaObject, 1, _a); |
| 201 | } |
| 202 | |
| 203 | // SIGNAL 2 |
| 204 | void QWellArray::colorChanged(int _t1, QRgb _t2) |
| 205 | { |
| 206 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) }; |
| 207 | QMetaObject::activate(this, &staticMetaObject, 2, _a); |
| 208 | } |
| 209 | struct qt_meta_stringdata_QColorPicker_t { |
| 210 | const uint offsetsAndSize[12]; |
| 211 | char stringdata0[32]; |
| 212 | }; |
| 213 | #define QT_MOC_LITERAL(ofs, len) \ |
| 214 | uint(offsetof(qt_meta_stringdata_QColorPicker_t, stringdata0) + ofs), len |
| 215 | static const qt_meta_stringdata_QColorPicker_t qt_meta_stringdata_QColorPicker = { |
| 216 | { |
| 217 | QT_MOC_LITERAL(0, 12), // "QColorPicker" |
| 218 | QT_MOC_LITERAL(13, 6), // "newCol" |
| 219 | QT_MOC_LITERAL(20, 0), // "" |
| 220 | QT_MOC_LITERAL(21, 1), // "h" |
| 221 | QT_MOC_LITERAL(23, 1), // "s" |
| 222 | QT_MOC_LITERAL(25, 6) // "setCol" |
| 223 | |
| 224 | }, |
| 225 | "QColorPicker\0newCol\0\0h\0s\0setCol" |
| 226 | }; |
| 227 | #undef QT_MOC_LITERAL |
| 228 | |
| 229 | static const uint qt_meta_data_QColorPicker[] = { |
| 230 | |
| 231 | // content: |
| 232 | 9, // revision |
| 233 | 0, // classname |
| 234 | 0, 0, // classinfo |
| 235 | 2, 14, // methods |
| 236 | 0, 0, // properties |
| 237 | 0, 0, // enums/sets |
| 238 | 0, 0, // constructors |
| 239 | 0, // flags |
| 240 | 1, // signalCount |
| 241 | |
| 242 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
| 243 | 1, 2, 26, 2, 0x06, 0 /* Public */, |
| 244 | |
| 245 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
| 246 | 5, 2, 31, 2, 0x0a, 3 /* Public */, |
| 247 | |
| 248 | // signals: parameters |
| 249 | QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 4, |
| 250 | |
| 251 | // slots: parameters |
| 252 | QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 4, |
| 253 | |
| 254 | 0 // eod |
| 255 | }; |
| 256 | |
| 257 | void QColorPicker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 258 | { |
| 259 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 260 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 261 | auto *_t = static_cast<QColorPicker *>(_o); |
| 262 | Q_UNUSED(_t) |
| 263 | switch (_id) { |
| 264 | case 0: _t->newCol((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; |
| 265 | case 1: _t->setCol((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; |
| 266 | default: ; |
| 267 | } |
| 268 | } else if (_c == QMetaObject::IndexOfMethod) { |
| 269 | int *result = reinterpret_cast<int *>(_a[0]); |
| 270 | { |
| 271 | using _t = void (QColorPicker::*)(int , int ); |
| 272 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QColorPicker::newCol)) { |
| 273 | *result = 0; |
| 274 | return; |
| 275 | } |
| 276 | } |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | const QMetaObject QColorPicker::staticMetaObject = { { |
| 281 | QMetaObject::SuperData::link<QFrame::staticMetaObject>(), |
| 282 | qt_meta_stringdata_QColorPicker.offsetsAndSize, |
| 283 | qt_meta_data_QColorPicker, |
| 284 | qt_static_metacall, |
| 285 | nullptr, |
| 286 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QColorPicker_t |
| 287 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type> |
| 288 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type> |
| 289 | |
| 290 | |
| 291 | >, |
| 292 | nullptr |
| 293 | } }; |
| 294 | |
| 295 | |
| 296 | const QMetaObject *QColorPicker::metaObject() const |
| 297 | { |
| 298 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 299 | } |
| 300 | |
| 301 | void *QColorPicker::qt_metacast(const char *_clname) |
| 302 | { |
| 303 | if (!_clname) return nullptr; |
| 304 | if (!strcmp(_clname, qt_meta_stringdata_QColorPicker.stringdata0)) |
| 305 | return static_cast<void*>(this); |
| 306 | return QFrame::qt_metacast(_clname); |
| 307 | } |
| 308 | |
| 309 | int QColorPicker::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
| 310 | { |
| 311 | _id = QFrame::qt_metacall(_c, _id, _a); |
| 312 | if (_id < 0) |
| 313 | return _id; |
| 314 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 315 | if (_id < 2) |
| 316 | qt_static_metacall(this, _c, _id, _a); |
| 317 | _id -= 2; |
| 318 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 319 | if (_id < 2) |
| 320 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
| 321 | _id -= 2; |
| 322 | } |
| 323 | return _id; |
| 324 | } |
| 325 | |
| 326 | // SIGNAL 0 |
| 327 | void QColorPicker::newCol(int _t1, int _t2) |
| 328 | { |
| 329 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) }; |
| 330 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
| 331 | } |
| 332 | struct qt_meta_stringdata_QColorLuminancePicker_t { |
| 333 | const uint offsetsAndSize[14]; |
| 334 | char stringdata0[43]; |
| 335 | }; |
| 336 | #define QT_MOC_LITERAL(ofs, len) \ |
| 337 | uint(offsetof(qt_meta_stringdata_QColorLuminancePicker_t, stringdata0) + ofs), len |
| 338 | static const qt_meta_stringdata_QColorLuminancePicker_t qt_meta_stringdata_QColorLuminancePicker = { |
| 339 | { |
| 340 | QT_MOC_LITERAL(0, 21), // "QColorLuminancePicker" |
| 341 | QT_MOC_LITERAL(22, 6), // "newHsv" |
| 342 | QT_MOC_LITERAL(29, 0), // "" |
| 343 | QT_MOC_LITERAL(30, 1), // "h" |
| 344 | QT_MOC_LITERAL(32, 1), // "s" |
| 345 | QT_MOC_LITERAL(34, 1), // "v" |
| 346 | QT_MOC_LITERAL(36, 6) // "setCol" |
| 347 | |
| 348 | }, |
| 349 | "QColorLuminancePicker\0newHsv\0\0h\0s\0v\0" |
| 350 | "setCol" |
| 351 | }; |
| 352 | #undef QT_MOC_LITERAL |
| 353 | |
| 354 | static const uint qt_meta_data_QColorLuminancePicker[] = { |
| 355 | |
| 356 | // content: |
| 357 | 9, // revision |
| 358 | 0, // classname |
| 359 | 0, 0, // classinfo |
| 360 | 3, 14, // methods |
| 361 | 0, 0, // properties |
| 362 | 0, 0, // enums/sets |
| 363 | 0, 0, // constructors |
| 364 | 0, // flags |
| 365 | 1, // signalCount |
| 366 | |
| 367 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
| 368 | 1, 3, 32, 2, 0x06, 0 /* Public */, |
| 369 | |
| 370 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
| 371 | 6, 3, 39, 2, 0x0a, 4 /* Public */, |
| 372 | 6, 2, 46, 2, 0x0a, 8 /* Public */, |
| 373 | |
| 374 | // signals: parameters |
| 375 | QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 3, 4, 5, |
| 376 | |
| 377 | // slots: parameters |
| 378 | QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, 3, 4, 5, |
| 379 | QMetaType::Void, QMetaType::Int, QMetaType::Int, 3, 4, |
| 380 | |
| 381 | 0 // eod |
| 382 | }; |
| 383 | |
| 384 | void QColorLuminancePicker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 385 | { |
| 386 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 387 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 388 | auto *_t = static_cast<QColorLuminancePicker *>(_o); |
| 389 | Q_UNUSED(_t) |
| 390 | switch (_id) { |
| 391 | case 0: _t->newHsv((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break; |
| 392 | case 1: _t->setCol((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break; |
| 393 | case 2: _t->setCol((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; |
| 394 | default: ; |
| 395 | } |
| 396 | } else if (_c == QMetaObject::IndexOfMethod) { |
| 397 | int *result = reinterpret_cast<int *>(_a[0]); |
| 398 | { |
| 399 | using _t = void (QColorLuminancePicker::*)(int , int , int ); |
| 400 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QColorLuminancePicker::newHsv)) { |
| 401 | *result = 0; |
| 402 | return; |
| 403 | } |
| 404 | } |
| 405 | } |
| 406 | } |
| 407 | |
| 408 | const QMetaObject QColorLuminancePicker::staticMetaObject = { { |
| 409 | QMetaObject::SuperData::link<QWidget::staticMetaObject>(), |
| 410 | qt_meta_stringdata_QColorLuminancePicker.offsetsAndSize, |
| 411 | qt_meta_data_QColorLuminancePicker, |
| 412 | qt_static_metacall, |
| 413 | nullptr, |
| 414 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QColorLuminancePicker_t |
| 415 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type> |
| 416 | , 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<int, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type> |
| 417 | |
| 418 | |
| 419 | >, |
| 420 | nullptr |
| 421 | } }; |
| 422 | |
| 423 | |
| 424 | const QMetaObject *QColorLuminancePicker::metaObject() const |
| 425 | { |
| 426 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 427 | } |
| 428 | |
| 429 | void *QColorLuminancePicker::qt_metacast(const char *_clname) |
| 430 | { |
| 431 | if (!_clname) return nullptr; |
| 432 | if (!strcmp(_clname, qt_meta_stringdata_QColorLuminancePicker.stringdata0)) |
| 433 | return static_cast<void*>(this); |
| 434 | return QWidget::qt_metacast(_clname); |
| 435 | } |
| 436 | |
| 437 | int QColorLuminancePicker::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
| 438 | { |
| 439 | _id = QWidget::qt_metacall(_c, _id, _a); |
| 440 | if (_id < 0) |
| 441 | return _id; |
| 442 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 443 | if (_id < 3) |
| 444 | qt_static_metacall(this, _c, _id, _a); |
| 445 | _id -= 3; |
| 446 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 447 | if (_id < 3) |
| 448 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
| 449 | _id -= 3; |
| 450 | } |
| 451 | return _id; |
| 452 | } |
| 453 | |
| 454 | // SIGNAL 0 |
| 455 | void QColorLuminancePicker::newHsv(int _t1, int _t2, int _t3) |
| 456 | { |
| 457 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) }; |
| 458 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
| 459 | } |
| 460 | struct qt_meta_stringdata_QColorShower_t { |
| 461 | const uint offsetsAndSize[22]; |
| 462 | char stringdata0[82]; |
| 463 | }; |
| 464 | #define QT_MOC_LITERAL(ofs, len) \ |
| 465 | uint(offsetof(qt_meta_stringdata_QColorShower_t, stringdata0) + ofs), len |
| 466 | static const qt_meta_stringdata_QColorShower_t qt_meta_stringdata_QColorShower = { |
| 467 | { |
| 468 | QT_MOC_LITERAL(0, 12), // "QColorShower" |
| 469 | QT_MOC_LITERAL(13, 6), // "newCol" |
| 470 | QT_MOC_LITERAL(20, 0), // "" |
| 471 | QT_MOC_LITERAL(21, 4), // "QRgb" |
| 472 | QT_MOC_LITERAL(26, 3), // "rgb" |
| 473 | QT_MOC_LITERAL(30, 19), // "currentColorChanged" |
| 474 | QT_MOC_LITERAL(50, 5), // "color" |
| 475 | QT_MOC_LITERAL(56, 6), // "setRgb" |
| 476 | QT_MOC_LITERAL(63, 5), // "rgbEd" |
| 477 | QT_MOC_LITERAL(69, 5), // "hsvEd" |
| 478 | QT_MOC_LITERAL(75, 6) // "htmlEd" |
| 479 | |
| 480 | }, |
| 481 | "QColorShower\0newCol\0\0QRgb\0rgb\0" |
| 482 | "currentColorChanged\0color\0setRgb\0rgbEd\0" |
| 483 | "hsvEd\0htmlEd" |
| 484 | }; |
| 485 | #undef QT_MOC_LITERAL |
| 486 | |
| 487 | static const uint qt_meta_data_QColorShower[] = { |
| 488 | |
| 489 | // content: |
| 490 | 9, // revision |
| 491 | 0, // classname |
| 492 | 0, 0, // classinfo |
| 493 | 6, 14, // methods |
| 494 | 0, 0, // properties |
| 495 | 0, 0, // enums/sets |
| 496 | 0, 0, // constructors |
| 497 | 0, // flags |
| 498 | 2, // signalCount |
| 499 | |
| 500 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
| 501 | 1, 1, 50, 2, 0x06, 0 /* Public */, |
| 502 | 5, 1, 53, 2, 0x06, 2 /* Public */, |
| 503 | |
| 504 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
| 505 | 7, 1, 56, 2, 0x0a, 4 /* Public */, |
| 506 | 8, 0, 59, 2, 0x08, 6 /* Private */, |
| 507 | 9, 0, 60, 2, 0x08, 7 /* Private */, |
| 508 | 10, 0, 61, 2, 0x08, 8 /* Private */, |
| 509 | |
| 510 | // signals: parameters |
| 511 | QMetaType::Void, 0x80000000 | 3, 4, |
| 512 | QMetaType::Void, QMetaType::QColor, 6, |
| 513 | |
| 514 | // slots: parameters |
| 515 | QMetaType::Void, 0x80000000 | 3, 4, |
| 516 | QMetaType::Void, |
| 517 | QMetaType::Void, |
| 518 | QMetaType::Void, |
| 519 | |
| 520 | 0 // eod |
| 521 | }; |
| 522 | |
| 523 | void QColorShower::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 524 | { |
| 525 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 526 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 527 | auto *_t = static_cast<QColorShower *>(_o); |
| 528 | Q_UNUSED(_t) |
| 529 | switch (_id) { |
| 530 | case 0: _t->newCol((*reinterpret_cast< QRgb(*)>(_a[1]))); break; |
| 531 | case 1: _t->currentColorChanged((*reinterpret_cast< const QColor(*)>(_a[1]))); break; |
| 532 | case 2: _t->setRgb((*reinterpret_cast< QRgb(*)>(_a[1]))); break; |
| 533 | case 3: _t->rgbEd(); break; |
| 534 | case 4: _t->hsvEd(); break; |
| 535 | case 5: _t->htmlEd(); break; |
| 536 | default: ; |
| 537 | } |
| 538 | } else if (_c == QMetaObject::IndexOfMethod) { |
| 539 | int *result = reinterpret_cast<int *>(_a[0]); |
| 540 | { |
| 541 | using _t = void (QColorShower::*)(QRgb ); |
| 542 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QColorShower::newCol)) { |
| 543 | *result = 0; |
| 544 | return; |
| 545 | } |
| 546 | } |
| 547 | { |
| 548 | using _t = void (QColorShower::*)(const QColor & ); |
| 549 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QColorShower::currentColorChanged)) { |
| 550 | *result = 1; |
| 551 | return; |
| 552 | } |
| 553 | } |
| 554 | } |
| 555 | } |
| 556 | |
| 557 | const QMetaObject QColorShower::staticMetaObject = { { |
| 558 | QMetaObject::SuperData::link<QWidget::staticMetaObject>(), |
| 559 | qt_meta_stringdata_QColorShower.offsetsAndSize, |
| 560 | qt_meta_data_QColorShower, |
| 561 | qt_static_metacall, |
| 562 | nullptr, |
| 563 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QColorShower_t |
| 564 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QRgb, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QColor &, std::false_type> |
| 565 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QRgb, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
| 566 | |
| 567 | |
| 568 | >, |
| 569 | nullptr |
| 570 | } }; |
| 571 | |
| 572 | |
| 573 | const QMetaObject *QColorShower::metaObject() const |
| 574 | { |
| 575 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 576 | } |
| 577 | |
| 578 | void *QColorShower::qt_metacast(const char *_clname) |
| 579 | { |
| 580 | if (!_clname) return nullptr; |
| 581 | if (!strcmp(_clname, qt_meta_stringdata_QColorShower.stringdata0)) |
| 582 | return static_cast<void*>(this); |
| 583 | return QWidget::qt_metacast(_clname); |
| 584 | } |
| 585 | |
| 586 | int QColorShower::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
| 587 | { |
| 588 | _id = QWidget::qt_metacall(_c, _id, _a); |
| 589 | if (_id < 0) |
| 590 | return _id; |
| 591 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 592 | if (_id < 6) |
| 593 | qt_static_metacall(this, _c, _id, _a); |
| 594 | _id -= 6; |
| 595 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 596 | if (_id < 6) |
| 597 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
| 598 | _id -= 6; |
| 599 | } |
| 600 | return _id; |
| 601 | } |
| 602 | |
| 603 | // SIGNAL 0 |
| 604 | void QColorShower::newCol(QRgb _t1) |
| 605 | { |
| 606 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
| 607 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
| 608 | } |
| 609 | |
| 610 | // SIGNAL 1 |
| 611 | void QColorShower::currentColorChanged(const QColor & _t1) |
| 612 | { |
| 613 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
| 614 | QMetaObject::activate(this, &staticMetaObject, 1, _a); |
| 615 | } |
| 616 | struct qt_meta_stringdata_QColorShowLabel_t { |
| 617 | const uint offsetsAndSize[8]; |
| 618 | char stringdata0[35]; |
| 619 | }; |
| 620 | #define QT_MOC_LITERAL(ofs, len) \ |
| 621 | uint(offsetof(qt_meta_stringdata_QColorShowLabel_t, stringdata0) + ofs), len |
| 622 | static const qt_meta_stringdata_QColorShowLabel_t qt_meta_stringdata_QColorShowLabel = { |
| 623 | { |
| 624 | QT_MOC_LITERAL(0, 15), // "QColorShowLabel" |
| 625 | QT_MOC_LITERAL(16, 12), // "colorDropped" |
| 626 | QT_MOC_LITERAL(29, 0), // "" |
| 627 | QT_MOC_LITERAL(30, 4) // "QRgb" |
| 628 | |
| 629 | }, |
| 630 | "QColorShowLabel\0colorDropped\0\0QRgb" |
| 631 | }; |
| 632 | #undef QT_MOC_LITERAL |
| 633 | |
| 634 | static const uint qt_meta_data_QColorShowLabel[] = { |
| 635 | |
| 636 | // content: |
| 637 | 9, // revision |
| 638 | 0, // classname |
| 639 | 0, 0, // classinfo |
| 640 | 1, 14, // methods |
| 641 | 0, 0, // properties |
| 642 | 0, 0, // enums/sets |
| 643 | 0, 0, // constructors |
| 644 | 0, // flags |
| 645 | 1, // signalCount |
| 646 | |
| 647 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
| 648 | 1, 1, 20, 2, 0x06, 0 /* Public */, |
| 649 | |
| 650 | // signals: parameters |
| 651 | QMetaType::Void, 0x80000000 | 3, 2, |
| 652 | |
| 653 | 0 // eod |
| 654 | }; |
| 655 | |
| 656 | void QColorShowLabel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
| 657 | { |
| 658 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 659 | Q_ASSERT(staticMetaObject.cast(_o)); |
| 660 | auto *_t = static_cast<QColorShowLabel *>(_o); |
| 661 | Q_UNUSED(_t) |
| 662 | switch (_id) { |
| 663 | case 0: _t->colorDropped((*reinterpret_cast< QRgb(*)>(_a[1]))); break; |
| 664 | default: ; |
| 665 | } |
| 666 | } else if (_c == QMetaObject::IndexOfMethod) { |
| 667 | int *result = reinterpret_cast<int *>(_a[0]); |
| 668 | { |
| 669 | using _t = void (QColorShowLabel::*)(QRgb ); |
| 670 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QColorShowLabel::colorDropped)) { |
| 671 | *result = 0; |
| 672 | return; |
| 673 | } |
| 674 | } |
| 675 | } |
| 676 | } |
| 677 | |
| 678 | const QMetaObject QColorShowLabel::staticMetaObject = { { |
| 679 | QMetaObject::SuperData::link<QFrame::staticMetaObject>(), |
| 680 | qt_meta_stringdata_QColorShowLabel.offsetsAndSize, |
| 681 | qt_meta_data_QColorShowLabel, |
| 682 | qt_static_metacall, |
| 683 | nullptr, |
| 684 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QColorShowLabel_t |
| 685 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QRgb, std::false_type> |
| 686 | |
| 687 | |
| 688 | |
| 689 | >, |
| 690 | nullptr |
| 691 | } }; |
| 692 | |
| 693 | |
| 694 | const QMetaObject *QColorShowLabel::metaObject() const |
| 695 | { |
| 696 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
| 697 | } |
| 698 | |
| 699 | void *QColorShowLabel::qt_metacast(const char *_clname) |
| 700 | { |
| 701 | if (!_clname) return nullptr; |
| 702 | if (!strcmp(_clname, qt_meta_stringdata_QColorShowLabel.stringdata0)) |
| 703 | return static_cast<void*>(this); |
| 704 | return QFrame::qt_metacast(_clname); |
| 705 | } |
| 706 | |
| 707 | int QColorShowLabel::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
| 708 | { |
| 709 | _id = QFrame::qt_metacall(_c, _id, _a); |
| 710 | if (_id < 0) |
| 711 | return _id; |
| 712 | if (_c == QMetaObject::InvokeMetaMethod) { |
| 713 | if (_id < 1) |
| 714 | qt_static_metacall(this, _c, _id, _a); |
| 715 | _id -= 1; |
| 716 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
| 717 | if (_id < 1) |
| 718 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
| 719 | _id -= 1; |
| 720 | } |
| 721 | return _id; |
| 722 | } |
| 723 | |
| 724 | // SIGNAL 0 |
| 725 | void QColorShowLabel::colorDropped(QRgb _t1) |
| 726 | { |
| 727 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
| 728 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
| 729 | } |
| 730 | QT_WARNING_POP |
| 731 | QT_END_MOC_NAMESPACE |
| 732 | |