/****************************************************************************
** Meta object code from reading C++ file 'GuiCheckBox.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 "../../../../amarok-3.3.3/src/scripting/scriptengine/qtbindings/GuiCheckBox.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 'GuiCheckBox.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_ZN10QtBindings3Gui8CheckBoxE_t {};
} // unnamed namespace

template <> constexpr inline auto QtBindings::Gui::CheckBox::qt_create_metaobjectdata<qt_meta_tag_ZN10QtBindings3Gui8CheckBoxE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtBindings::Gui::CheckBox",
        "checkState",
        "Qt::CheckState",
        "",
        "isTristate",
        "setCheckState",
        "state",
        "setTristate",
        "y",
        "setEnabled",
        "enabled",
        "minimumSizeHint",
        "QSize",
        "sizeHint",
        "CheckBox",
        "QWidget*",
        "parent",
        "other",
        "text"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'checkState'
        QtMocHelpers::SlotData<Qt::CheckState() const>(1, 3, QMC::AccessPublic, 0x80000000 | 2),
        // Slot 'isTristate'
        QtMocHelpers::SlotData<bool() const>(4, 3, QMC::AccessPublic, QMetaType::Bool),
        // Slot 'setCheckState'
        QtMocHelpers::SlotData<void(Qt::CheckState)>(5, 3, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 2, 6 },
        }}),
        // Slot 'setTristate'
        QtMocHelpers::SlotData<void(bool)>(7, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 8 },
        }}),
        // Slot 'setTristate'
        QtMocHelpers::SlotData<void()>(7, 3, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'setEnabled'
        QtMocHelpers::SlotData<void(bool)>(9, 3, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 10 },
        }}),
        // Slot 'minimumSizeHint'
        QtMocHelpers::SlotData<QSize() const>(11, 3, QMC::AccessPublic, 0x80000000 | 12),
        // Slot 'sizeHint'
        QtMocHelpers::SlotData<QSize() const>(13, 3, QMC::AccessPublic, 0x80000000 | 12),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    using Constructor = QtMocHelpers::NoType;
    QtMocHelpers::UintData qt_constructors {
        QtMocHelpers::ConstructorData<Constructor(QWidget *)>(3, QMC::AccessPublic, {{
            { 0x80000000 | 15, 16 },
        }}),
        QtMocHelpers::ConstructorData<Constructor()>(3, QMC::AccessPublic | QMC::MethodCloned),
        QtMocHelpers::ConstructorData<Constructor(const CheckBox &)>(3, QMC::AccessPublic, {{
            { 0x80000000 | 14, 17 },
        }}),
        QtMocHelpers::ConstructorData<Constructor(const QString &, QWidget *)>(3, QMC::AccessPublic, {{
            { QMetaType::QString, 18 }, { 0x80000000 | 15, 16 },
        }}),
        QtMocHelpers::ConstructorData<Constructor(const QString &)>(3, QMC::AccessPublic | QMC::MethodCloned, {{
            { QMetaType::QString, 18 },
        }}),
    };
    return QtMocHelpers::metaObjectData<CheckBox, qt_meta_tag_ZN10QtBindings3Gui8CheckBoxE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors);
}
Q_CONSTINIT const QMetaObject QtBindings::Gui::CheckBox::staticMetaObject = { {
    QMetaObject::SuperData::link<QCheckBox::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings3Gui8CheckBoxE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings3Gui8CheckBoxE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10QtBindings3Gui8CheckBoxE_t>.metaTypes,
    nullptr
} };

void QtBindings::Gui::CheckBox::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CheckBox *>(_o);
    if (_c == QMetaObject::CreateInstance) {
        switch (_id) {
        case 0: { CheckBox *_r = new CheckBox((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 1: { CheckBox *_r = new CheckBox();
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 2: { CheckBox *_r = new CheckBox((*reinterpret_cast<std::add_pointer_t<CheckBox>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 3: { CheckBox *_r = new CheckBox((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[2])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 4: { CheckBox *_r = new CheckBox((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        default: break;
        }
    }
    if (_c == QMetaObject::ConstructInPlace) {
        switch (_id) {
        case 0: { new (_a[0]) CheckBox((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1]))); } break;
        case 1: { new (_a[0]) CheckBox(); } break;
        case 2: { new (_a[0]) CheckBox((*reinterpret_cast<std::add_pointer_t<CheckBox>>(_a[1]))); } break;
        case 3: { new (_a[0]) CheckBox((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[2]))); } break;
        case 4: { new (_a[0]) CheckBox((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); } break;
        default: break;
        }
    }
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { Qt::CheckState _r = _t->checkState();
            if (_a[0]) *reinterpret_cast<Qt::CheckState*>(_a[0]) = std::move(_r); }  break;
        case 1: { bool _r = _t->isTristate();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 2: _t->setCheckState((*reinterpret_cast<std::add_pointer_t<Qt::CheckState>>(_a[1]))); break;
        case 3: _t->setTristate((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 4: _t->setTristate(); break;
        case 5: _t->setEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 6: { QSize _r = _t->minimumSizeHint();
            if (_a[0]) *reinterpret_cast<QSize*>(_a[0]) = std::move(_r); }  break;
        case 7: { QSize _r = _t->sizeHint();
            if (_a[0]) *reinterpret_cast<QSize*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
}

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

void *QtBindings::Gui::CheckBox::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings3Gui8CheckBoxE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QtBindings::Base<CheckBox>"))
        return static_cast< QtBindings::Base<CheckBox>*>(this);
    return QCheckBox::qt_metacast(_clname);
}

int QtBindings::Gui::CheckBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QCheckBox::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 8;
    }
    return _id;
}
QT_WARNING_POP
