154 lines
5.5 KiB
C++
154 lines
5.5 KiB
C++
/****************************************************************************
|
|
** Meta object code from reading C++ file 'qledmatrix.h'
|
|
**
|
|
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.10.2)
|
|
**
|
|
** WARNING! All changes made in this file will be lost!
|
|
*****************************************************************************/
|
|
|
|
#include "../../../../../../qt6-after/qt6-migrated-legatus/Lts/Tools/QLedMatrix/qledmatrix.h"
|
|
#include <QtCore/qmetatype.h>
|
|
|
|
#include <QtCore/qtmochelpers.h>
|
|
|
|
#include <memory>
|
|
|
|
|
|
#include <QtCore/qxptype_traits.h>
|
|
#if !defined(Q_MOC_OUTPUT_REVISION)
|
|
#error "The header file 'qledmatrix.h' doesn't include <QObject>."
|
|
#elif Q_MOC_OUTPUT_REVISION != 69
|
|
#error "This file was generated using the moc from 6.10.2. It"
|
|
#error "cannot be used with the include files from this version of Qt."
|
|
#error "(The moc has changed too much.)"
|
|
#endif
|
|
|
|
#ifndef Q_CONSTINIT
|
|
#define Q_CONSTINIT
|
|
#endif
|
|
|
|
QT_WARNING_PUSH
|
|
QT_WARNING_DISABLE_DEPRECATED
|
|
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
|
|
namespace {
|
|
struct qt_meta_tag_ZN10QLedMatrixE_t {};
|
|
} // unnamed namespace
|
|
|
|
template <> constexpr inline auto QLedMatrix::qt_create_metaobjectdata<qt_meta_tag_ZN10QLedMatrixE_t>()
|
|
{
|
|
namespace QMC = QtMocConstants;
|
|
QtMocHelpers::StringRefStorage qt_stringData {
|
|
"QLedMatrix",
|
|
"backgroundColor",
|
|
"QColor",
|
|
"backgroundMode",
|
|
"Qt::BGMode",
|
|
"darkLedColor",
|
|
"rows",
|
|
"columns",
|
|
"LEDColor",
|
|
"NoColor",
|
|
"Red",
|
|
"Green",
|
|
"Blue",
|
|
"White",
|
|
"Orange",
|
|
"OrangeRed",
|
|
"Yellow"
|
|
};
|
|
|
|
QtMocHelpers::UintData qt_methods {
|
|
};
|
|
QtMocHelpers::UintData qt_properties {
|
|
// property 'backgroundColor'
|
|
QtMocHelpers::PropertyData<QColor>(1, 0x80000000 | 2, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
|
|
// property 'backgroundMode'
|
|
QtMocHelpers::PropertyData<Qt::BGMode>(3, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
|
|
// property 'darkLedColor'
|
|
QtMocHelpers::PropertyData<QColor>(5, 0x80000000 | 2, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
|
|
// property 'rows'
|
|
QtMocHelpers::PropertyData<int>(6, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable),
|
|
// property 'columns'
|
|
QtMocHelpers::PropertyData<int>(7, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable),
|
|
};
|
|
QtMocHelpers::UintData qt_enums {
|
|
// enum 'LEDColor'
|
|
QtMocHelpers::EnumData<enum LEDColor>(8, 8, QMC::EnumFlags{}).add({
|
|
{ 9, LEDColor::NoColor },
|
|
{ 10, LEDColor::Red },
|
|
{ 11, LEDColor::Green },
|
|
{ 12, LEDColor::Blue },
|
|
{ 13, LEDColor::White },
|
|
{ 14, LEDColor::Orange },
|
|
{ 15, LEDColor::OrangeRed },
|
|
{ 16, LEDColor::Yellow },
|
|
}),
|
|
};
|
|
return QtMocHelpers::metaObjectData<QLedMatrix, qt_meta_tag_ZN10QLedMatrixE_t>(QMC::MetaObjectFlag{}, qt_stringData,
|
|
qt_methods, qt_properties, qt_enums);
|
|
}
|
|
Q_CONSTINIT const QMetaObject QLedMatrix::staticMetaObject = { {
|
|
QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
|
|
qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QLedMatrixE_t>.stringdata,
|
|
qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QLedMatrixE_t>.data,
|
|
qt_static_metacall,
|
|
nullptr,
|
|
qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10QLedMatrixE_t>.metaTypes,
|
|
nullptr
|
|
} };
|
|
|
|
void QLedMatrix::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
|
{
|
|
auto *_t = static_cast<QLedMatrix *>(_o);
|
|
if (_c == QMetaObject::ReadProperty) {
|
|
void *_v = _a[0];
|
|
switch (_id) {
|
|
case 0: *reinterpret_cast<QColor*>(_v) = _t->backgroundColor(); break;
|
|
case 1: *reinterpret_cast<Qt::BGMode*>(_v) = _t->backgroundMode(); break;
|
|
case 2: *reinterpret_cast<QColor*>(_v) = _t->darkLedColor(); break;
|
|
case 3: *reinterpret_cast<int*>(_v) = _t->rowCount(); break;
|
|
case 4: *reinterpret_cast<int*>(_v) = _t->columnCount(); break;
|
|
default: break;
|
|
}
|
|
}
|
|
if (_c == QMetaObject::WriteProperty) {
|
|
void *_v = _a[0];
|
|
switch (_id) {
|
|
case 0: _t->setBackgroundColor(*reinterpret_cast<QColor*>(_v)); break;
|
|
case 1: _t->setBackgroundMode(*reinterpret_cast<Qt::BGMode*>(_v)); break;
|
|
case 2: _t->setDarkLedColor(*reinterpret_cast<QColor*>(_v)); break;
|
|
case 3: _t->setRowCount(*reinterpret_cast<int*>(_v)); break;
|
|
case 4: _t->setColumnCount(*reinterpret_cast<int*>(_v)); break;
|
|
default: break;
|
|
}
|
|
}
|
|
}
|
|
|
|
const QMetaObject *QLedMatrix::metaObject() const
|
|
{
|
|
return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
|
|
}
|
|
|
|
void *QLedMatrix::qt_metacast(const char *_clname)
|
|
{
|
|
if (!_clname) return nullptr;
|
|
if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QLedMatrixE_t>.strings))
|
|
return static_cast<void*>(this);
|
|
return QWidget::qt_metacast(_clname);
|
|
}
|
|
|
|
int QLedMatrix::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
|
{
|
|
_id = QWidget::qt_metacall(_c, _id, _a);
|
|
if (_id < 0)
|
|
return _id;
|
|
if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
|
|
|| _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
|
|
|| _c == QMetaObject::RegisterPropertyMetaType) {
|
|
qt_static_metacall(this, _c, _id, _a);
|
|
_id -= 5;
|
|
}
|
|
return _id;
|
|
}
|
|
QT_WARNING_POP
|