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

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

template <> constexpr inline auto QcNumberBox::qt_create_metaobjectdata<qt_meta_tag_ZN11QcNumberBoxE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QcNumberBox",
        "scrolled",
        "",
        "steps",
        "valueChanged",
        "action",
        "increment",
        "factor",
        "decrement",
        "onEditingFinished",
        "updateText",
        "setInfinite",
        "positive",
        "setNaN",
        "shiftScale",
        "ctrlScale",
        "altScale",
        "minimum",
        "maximum",
        "decimals",
        "maxDecimals",
        "minDecimals",
        "value",
        "valueType",
        "text",
        "step",
        "scrollStep",
        "scroll",
        "normalColor",
        "QColor",
        "editingColor"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'scrolled'
        QtMocHelpers::SignalData<void(int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Signal 'valueChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'action'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'increment'
        QtMocHelpers::SlotData<void(double)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 7 },
        }}),
        // Slot 'decrement'
        QtMocHelpers::SlotData<void(double)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 7 },
        }}),
        // Slot 'onEditingFinished'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateText'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPrivate, QMetaType::Void),
        // Method 'setInfinite'
        QtMocHelpers::MethodData<void(bool)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 12 },
        }}),
        // Method 'setInfinite'
        QtMocHelpers::MethodData<void()>(11, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Method 'setNaN'
        QtMocHelpers::MethodData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'shiftScale'
        QtMocHelpers::PropertyData<double>(14, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'ctrlScale'
        QtMocHelpers::PropertyData<double>(15, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'altScale'
        QtMocHelpers::PropertyData<double>(16, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'minimum'
        QtMocHelpers::PropertyData<double>(17, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'maximum'
        QtMocHelpers::PropertyData<double>(18, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'decimals'
        QtMocHelpers::PropertyData<int>(19, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'maxDecimals'
        QtMocHelpers::PropertyData<int>(20, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'minDecimals'
        QtMocHelpers::PropertyData<int>(21, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'value'
        QtMocHelpers::PropertyData<double>(22, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'valueType'
        QtMocHelpers::PropertyData<int>(23, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'text'
        QtMocHelpers::PropertyData<QString>(24, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'step'
        QtMocHelpers::PropertyData<double>(25, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'scrollStep'
        QtMocHelpers::PropertyData<double>(26, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'scroll'
        QtMocHelpers::PropertyData<bool>(27, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'normalColor'
        QtMocHelpers::PropertyData<QColor>(28, 0x80000000 | 29, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
        // property 'editingColor'
        QtMocHelpers::PropertyData<QColor>(30, 0x80000000 | 29, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QcNumberBox, qt_meta_tag_ZN11QcNumberBoxE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject QcNumberBox::staticMetaObject = { {
    QMetaObject::SuperData::link<QLineEdit::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QcNumberBoxE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QcNumberBoxE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11QcNumberBoxE_t>.metaTypes,
    nullptr
} };

void QcNumberBox::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QcNumberBox *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->scrolled((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 1: _t->valueChanged(); break;
        case 2: _t->action(); break;
        case 3: _t->increment((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 4: _t->decrement((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 5: _t->onEditingFinished(); break;
        case 6: _t->updateText(); break;
        case 7: _t->setInfinite((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: _t->setInfinite(); break;
        case 9: _t->setNaN(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QcNumberBox::*)(int )>(_a, &QcNumberBox::scrolled, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QcNumberBox::*)()>(_a, &QcNumberBox::valueChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QcNumberBox::*)()>(_a, &QcNumberBox::action, 2))
            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->minimum(); break;
        case 4: *reinterpret_cast<double*>(_v) = _t->maximum(); break;
        case 5: *reinterpret_cast<int*>(_v) = _t->decimals(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->maxDecimals(); break;
        case 7: *reinterpret_cast<int*>(_v) = _t->minDecimals(); break;
        case 8: *reinterpret_cast<double*>(_v) = _t->value(); break;
        case 9: *reinterpret_cast<int*>(_v) = _t->valueType(); break;
        case 10: *reinterpret_cast<QString*>(_v) = _t->text(); break;
        case 11: *reinterpret_cast<double*>(_v) = _t->dummyFloat(); break;
        case 12: *reinterpret_cast<double*>(_v) = _t->dummyFloat(); break;
        case 13: *reinterpret_cast<bool*>(_v) = _t->dummyBool(); break;
        case 14: *reinterpret_cast<QColor*>(_v) = _t->dummyColor(); break;
        case 15: *reinterpret_cast<QColor*>(_v) = _t->dummyColor(); 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->setMinimum(*reinterpret_cast<double*>(_v)); break;
        case 4: _t->setMaximum(*reinterpret_cast<double*>(_v)); break;
        case 5: _t->setDecimals(*reinterpret_cast<int*>(_v)); break;
        case 6: _t->setMaxDecimals(*reinterpret_cast<int*>(_v)); break;
        case 7: _t->setMinDecimals(*reinterpret_cast<int*>(_v)); break;
        case 8: _t->setValue(*reinterpret_cast<double*>(_v)); break;
        case 10: _t->setTextValue(*reinterpret_cast<QString*>(_v)); break;
        case 11: _t->setStep(*reinterpret_cast<double*>(_v)); break;
        case 12: _t->setScrollStep(*reinterpret_cast<double*>(_v)); break;
        case 13: _t->setScroll(*reinterpret_cast<bool*>(_v)); break;
        case 14: _t->setTextColor(*reinterpret_cast<QColor*>(_v)); break;
        case 15: _t->setEditedTextColor(*reinterpret_cast<QColor*>(_v)); break;
        default: break;
        }
    }
}

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

void *QcNumberBox::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11QcNumberBoxE_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);
    return QLineEdit::qt_metacast(_clname);
}

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

// SIGNAL 0
void QcNumberBox::scrolled(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void QcNumberBox::valueChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void QcNumberBox::action()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
