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

template <> constexpr inline auto QtBindings::Gui::DialogButtonBox::qt_create_metaobjectdata<qt_meta_tag_ZN10QtBindings3Gui15DialogButtonBoxE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "QtBindings::Gui::DialogButtonBox",
        "DialogButtonBox",
        "",
        "QWidget*",
        "parent",
        "other",
        "ButtonRole",
        "InvalidRole",
        "AcceptRole",
        "RejectRole",
        "DestructiveRole",
        "ActionRole",
        "HelpRole",
        "YesRole",
        "NoRole",
        "ResetRole",
        "ApplyRole",
        "NRoles",
        "ButtonLayout",
        "WinLayout",
        "MacLayout",
        "KdeLayout",
        "GnomeLayout"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'ButtonRole'
        QtMocHelpers::EnumData<enum ButtonRole>(6, 6, QMC::EnumFlags{}).add({
            {    7, ButtonRole::InvalidRole },
            {    8, ButtonRole::AcceptRole },
            {    9, ButtonRole::RejectRole },
            {   10, ButtonRole::DestructiveRole },
            {   11, ButtonRole::ActionRole },
            {   12, ButtonRole::HelpRole },
            {   13, ButtonRole::YesRole },
            {   14, ButtonRole::NoRole },
            {   15, ButtonRole::ResetRole },
            {   16, ButtonRole::ApplyRole },
            {   17, ButtonRole::NRoles },
        }),
        // enum 'ButtonLayout'
        QtMocHelpers::EnumData<enum ButtonLayout>(18, 18, QMC::EnumFlags{}).add({
            {   19, ButtonLayout::WinLayout },
            {   20, ButtonLayout::MacLayout },
            {   21, ButtonLayout::KdeLayout },
            {   22, ButtonLayout::GnomeLayout },
        }),
    };
    using Constructor = QtMocHelpers::NoType;
    QtMocHelpers::UintData qt_constructors {
        QtMocHelpers::ConstructorData<Constructor(QWidget *)>(2, QMC::AccessPublic, {{
            { 0x80000000 | 3, 4 },
        }}),
        QtMocHelpers::ConstructorData<Constructor()>(2, QMC::AccessPublic | QMC::MethodCloned),
        QtMocHelpers::ConstructorData<Constructor(const DialogButtonBox &)>(2, QMC::AccessPublic, {{
            { 0x80000000 | 1, 5 },
        }}),
    };
    return QtMocHelpers::metaObjectData<DialogButtonBox, qt_meta_tag_ZN10QtBindings3Gui15DialogButtonBoxE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors);
}
Q_CONSTINIT const QMetaObject QtBindings::Gui::DialogButtonBox::staticMetaObject = { {
    QMetaObject::SuperData::link<QDialogButtonBox::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings3Gui15DialogButtonBoxE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10QtBindings3Gui15DialogButtonBoxE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10QtBindings3Gui15DialogButtonBoxE_t>.metaTypes,
    nullptr
} };

void QtBindings::Gui::DialogButtonBox::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DialogButtonBox *>(_o);
    if (_c == QMetaObject::CreateInstance) {
        switch (_id) {
        case 0: { DialogButtonBox *_r = new DialogButtonBox((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 1: { DialogButtonBox *_r = new DialogButtonBox();
            if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break;
        case 2: { DialogButtonBox *_r = new DialogButtonBox((*reinterpret_cast<std::add_pointer_t<DialogButtonBox>>(_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]) DialogButtonBox((*reinterpret_cast<std::add_pointer_t<QWidget*>>(_a[1]))); } break;
        case 1: { new (_a[0]) DialogButtonBox(); } break;
        case 2: { new (_a[0]) DialogButtonBox((*reinterpret_cast<std::add_pointer_t<DialogButtonBox>>(_a[1]))); } break;
        default: break;
        }
    }
    (void)_t;
}

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

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

int QtBindings::Gui::DialogButtonBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDialogButtonBox::qt_metacall(_c, _id, _a);
    return _id;
}
QT_WARNING_POP
