/****************************************************************************
** Meta object code from reading C++ file 'QcSlider.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/QcSlider.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 'QcSlider.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_ZN8QcSliderE_t {};
} // unnamed namespace

template <> constexpr inline auto QcSlider::qt_create_metaobjectdata<qt_meta_tag_ZN8QcSliderE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QcSlider",
        "action",
        "",
        "preAction",
        "increment",
        "factor",
        "decrement",
        "shiftScale",
        "ctrlScale",
        "altScale",
        "step",
        "pixelStep",
        "value",
        "orientation",
        "handleLength",
        "grooveColor",
        "QColor",
        "focusColor",
        "knobColor"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'action'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'preAction'
        QtMocHelpers::SignalData<void(double)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 2 },
        }}),
        // Slot 'increment'
        QtMocHelpers::SlotData<void(double)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 5 },
        }}),
        // Slot 'decrement'
        QtMocHelpers::SlotData<void(double)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 5 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'shiftScale'
        QtMocHelpers::PropertyData<double>(7, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'ctrlScale'
        QtMocHelpers::PropertyData<double>(8, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'altScale'
        QtMocHelpers::PropertyData<double>(9, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'step'
        QtMocHelpers::PropertyData<double>(10, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'pixelStep'
        QtMocHelpers::PropertyData<double>(11, QMetaType::Double, QMC::DefaultPropertyFlags),
        // property 'value'
        QtMocHelpers::PropertyData<double>(12, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'orientation'
        QtMocHelpers::PropertyData<int>(13, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'handleLength'
        QtMocHelpers::PropertyData<int>(14, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'grooveColor'
        QtMocHelpers::PropertyData<QColor>(15, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'focusColor'
        QtMocHelpers::PropertyData<QColor>(17, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'knobColor'
        QtMocHelpers::PropertyData<QColor>(18, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QcSlider, qt_meta_tag_ZN8QcSliderE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QcSlider::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8QcSliderE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8QcSliderE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8QcSliderE_t>.metaTypes,
    nullptr
} };

void QcSlider::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QcSlider *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->action(); break;
        case 1: _t->preAction((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 2: _t->increment((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 3: _t->decrement((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QcSlider::*)()>(_a, &QcSlider::action, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QcSlider::*)(double )>(_a, &QcSlider::preAction, 1))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<double*>(_v) = _t->dummyFloat(); break;
        case 1: *reinterpret_cast<double*>(_v) = _t->dummyFloat(); break;
        case 2: *reinterpret_cast<double*>(_v) = _t->dummyFloat(); break;
        case 3: *reinterpret_cast<double*>(_v) = _t->step(); break;
        case 4: *reinterpret_cast<double*>(_v) = _t->pixelStep(); break;
        case 5: *reinterpret_cast<double*>(_v) = _t->value(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->orientation(); break;
        case 7: *reinterpret_cast<int*>(_v) = _t->handleLength(); break;
        case 8: *reinterpret_cast<QColor*>(_v) = _t->grooveColor(); break;
        case 9: *reinterpret_cast<QColor*>(_v) = _t->focusColor(); break;
        case 10: *reinterpret_cast<QColor*>(_v) = _t->knobColor(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setShiftScale(*reinterpret_cast<double*>(_v)); break;
        case 1: _t->setCtrlScale(*reinterpret_cast<double*>(_v)); break;
        case 2: _t->setAltScale(*reinterpret_cast<double*>(_v)); break;
        case 3: _t->setStep(*reinterpret_cast<double*>(_v)); break;
        case 5: _t->setValue(*reinterpret_cast<double*>(_v)); break;
        case 6: _t->setOrientation(*reinterpret_cast<int*>(_v)); break;
        case 7: _t->setHandleLength(*reinterpret_cast<int*>(_v)); break;
        case 8: _t->setGrooveColor(*reinterpret_cast<QColor*>(_v)); break;
        case 9: _t->setFocusColor(*reinterpret_cast<QColor*>(_v)); break;
        case 10: _t->setKnobColor(*reinterpret_cast<QColor*>(_v)); break;
        default: break;
        }
    }
}

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

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

int QcSlider::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 < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 4;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void QcSlider::action()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void QcSlider::preAction(double _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
