/****************************************************************************
** Meta object code from reading C++ file 'QcLevelIndicator.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.11.0)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../../SuperCollider-3.14.1-Source/QtCollider/widgets/QcLevelIndicator.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 'QcLevelIndicator.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. 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_ZN16QcLevelIndicatorE_t {};
} // unnamed namespace

template <> constexpr inline auto QcLevelIndicator::qt_create_metaobjectdata<qt_meta_tag_ZN16QcLevelIndicatorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QcLevelIndicator",
        "clipTimeout",
        "",
        "value",
        "warning",
        "critical",
        "peak",
        "drawPeak",
        "ticks",
        "majorTicks",
        "stepWidth",
        "style",
        "LevelIndicatorStyle",
        "grooveColor",
        "QColor",
        "meterColor",
        "warningColor",
        "criticalColor",
        "Continuous",
        "LED"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'clipTimeout'
        QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'value'
        QtMocHelpers::PropertyData<float>(3, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'warning'
        QtMocHelpers::PropertyData<float>(4, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'critical'
        QtMocHelpers::PropertyData<float>(5, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'peak'
        QtMocHelpers::PropertyData<float>(6, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'drawPeak'
        QtMocHelpers::PropertyData<bool>(7, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'ticks'
        QtMocHelpers::PropertyData<int>(8, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'majorTicks'
        QtMocHelpers::PropertyData<int>(9, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'stepWidth'
        QtMocHelpers::PropertyData<int>(10, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'style'
        QtMocHelpers::PropertyData<enum LevelIndicatorStyle>(11, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'grooveColor'
        QtMocHelpers::PropertyData<QColor>(13, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'meterColor'
        QtMocHelpers::PropertyData<QColor>(15, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'warningColor'
        QtMocHelpers::PropertyData<QColor>(16, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'criticalColor'
        QtMocHelpers::PropertyData<QColor>(17, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'LevelIndicatorStyle'
        QtMocHelpers::EnumData<enum LevelIndicatorStyle>(12, 12, QMC::EnumFlags{}).add({
            {   18, LevelIndicatorStyle::Continuous },
            {   19, LevelIndicatorStyle::LED },
        }),
    };
    return QtMocHelpers::metaObjectData<QcLevelIndicator, qt_meta_tag_ZN16QcLevelIndicatorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QcLevelIndicator::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16QcLevelIndicatorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16QcLevelIndicatorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16QcLevelIndicatorE_t>.metaTypes,
    nullptr
} };

void QcLevelIndicator::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QcLevelIndicator *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->clipTimeout(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<float*>(_v) = _t->dummyFloat(); break;
        case 1: *reinterpret_cast<float*>(_v) = _t->dummyFloat(); break;
        case 2: *reinterpret_cast<float*>(_v) = _t->dummyFloat(); break;
        case 3: *reinterpret_cast<float*>(_v) = _t->dummyFloat(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->dummyBool(); break;
        case 5: *reinterpret_cast<int*>(_v) = _t->dummyInt(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->dummyInt(); break;
        case 7: *reinterpret_cast<int*>(_v) = _t->dummyInt(); break;
        case 8: *reinterpret_cast<enum LevelIndicatorStyle*>(_v) = _t->style(); break;
        case 9: *reinterpret_cast<QColor*>(_v) = _t->grooveColor(); break;
        case 10: *reinterpret_cast<QColor*>(_v) = _t->dummyColor(); break;
        case 11: *reinterpret_cast<QColor*>(_v) = _t->dummyColor(); break;
        case 12: *reinterpret_cast<QColor*>(_v) = _t->dummyColor(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setValue(*reinterpret_cast<float*>(_v)); break;
        case 1: _t->setWarning(*reinterpret_cast<float*>(_v)); break;
        case 2: _t->setCritical(*reinterpret_cast<float*>(_v)); break;
        case 3: _t->setPeak(*reinterpret_cast<float*>(_v)); break;
        case 4: _t->setDrawPeak(*reinterpret_cast<bool*>(_v)); break;
        case 5: _t->setTicks(*reinterpret_cast<int*>(_v)); break;
        case 6: _t->setMajorTicks(*reinterpret_cast<int*>(_v)); break;
        case 7: _t->setStepWidth(*reinterpret_cast<int*>(_v)); break;
        case 8: _t->setStyle(*reinterpret_cast<enum LevelIndicatorStyle*>(_v)); break;
        case 9: _t->setGrooveColor(*reinterpret_cast<QColor*>(_v)); break;
        case 10: _t->setMeterColor(*reinterpret_cast<QColor*>(_v)); break;
        case 11: _t->setWarningColor(*reinterpret_cast<QColor*>(_v)); break;
        case 12: _t->setCriticalColor(*reinterpret_cast<QColor*>(_v)); break;
        default: break;
        }
    }
}

const QMetaObject *QcLevelIndicator::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *QcLevelIndicator::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16QcLevelIndicatorE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QcHelper"))
        return static_cast< QcHelper*>(this);
    if (!strcmp(_clname, "QtCollider::Style::Client"))
        return static_cast< QtCollider::Style::Client*>(this);
    return QWidget::qt_metacast(_clname);
}

int QcLevelIndicator::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 1)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 1;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    return _id;
}
QT_WARNING_POP
