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

#include "../../../../cockatrice/src/game/zones/view_zone_widget.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 'view_zone_widget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.9.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_ZN29ScrollableGraphicsProxyWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto ScrollableGraphicsProxyWidget::qt_create_metaobjectdata<qt_meta_tag_ZN29ScrollableGraphicsProxyWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ScrollableGraphicsProxyWidget",
        "recieveWheelEvent",
        "",
        "QGraphicsSceneWheelEvent*",
        "event"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'recieveWheelEvent'
        QtMocHelpers::SlotData<void(QGraphicsSceneWheelEvent *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ScrollableGraphicsProxyWidget, qt_meta_tag_ZN29ScrollableGraphicsProxyWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ScrollableGraphicsProxyWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QGraphicsProxyWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN29ScrollableGraphicsProxyWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN29ScrollableGraphicsProxyWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN29ScrollableGraphicsProxyWidgetE_t>.metaTypes,
    nullptr
} };

void ScrollableGraphicsProxyWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ScrollableGraphicsProxyWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->recieveWheelEvent((*reinterpret_cast< std::add_pointer_t<QGraphicsSceneWheelEvent*>>(_a[1]))); break;
        default: ;
        }
    }
}

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

void *ScrollableGraphicsProxyWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN29ScrollableGraphicsProxyWidgetE_t>.strings))
        return static_cast<void*>(this);
    return QGraphicsProxyWidget::qt_metacast(_clname);
}

int ScrollableGraphicsProxyWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QGraphicsProxyWidget::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;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN14ZoneViewWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto ZoneViewWidget::qt_create_metaobjectdata<qt_meta_tag_ZN14ZoneViewWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ZoneViewWidget",
        "closePressed",
        "",
        "ZoneViewWidget*",
        "zv",
        "processGroupBy",
        "value",
        "processSortBy",
        "processSetPileView",
        "Qt::CheckState",
        "resizeToZoneContents",
        "forceInitialHeight",
        "handleScrollBarChange",
        "zoneDeleted",
        "moveEvent",
        "QGraphicsSceneMoveEvent*",
        "resizeEvent",
        "QGraphicsSceneResizeEvent*",
        "expandWindow"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'closePressed'
        QtMocHelpers::SignalData<void(ZoneViewWidget *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'processGroupBy'
        QtMocHelpers::SlotData<void(int)>(5, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 6 },
        }}),
        // Slot 'processSortBy'
        QtMocHelpers::SlotData<void(int)>(7, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 6 },
        }}),
        // Slot 'processSetPileView'
        QtMocHelpers::SlotData<void(Qt::CheckState)>(8, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 9, 6 },
        }}),
        // Slot 'resizeToZoneContents'
        QtMocHelpers::SlotData<void(bool)>(10, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 11 },
        }}),
        // Slot 'resizeToZoneContents'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPrivate | QMC::MethodCloned, QMetaType::Void),
        // Slot 'handleScrollBarChange'
        QtMocHelpers::SlotData<void(int)>(12, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 6 },
        }}),
        // Slot 'zoneDeleted'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'moveEvent'
        QtMocHelpers::SlotData<void(QGraphicsSceneMoveEvent *)>(14, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 15, 2 },
        }}),
        // Slot 'resizeEvent'
        QtMocHelpers::SlotData<void(QGraphicsSceneResizeEvent *)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 17, 2 },
        }}),
        // Slot 'expandWindow'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ZoneViewWidget, qt_meta_tag_ZN14ZoneViewWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ZoneViewWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QGraphicsWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14ZoneViewWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14ZoneViewWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14ZoneViewWidgetE_t>.metaTypes,
    nullptr
} };

void ZoneViewWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ZoneViewWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->closePressed((*reinterpret_cast< std::add_pointer_t<ZoneViewWidget*>>(_a[1]))); break;
        case 1: _t->processGroupBy((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 2: _t->processSortBy((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->processSetPileView((*reinterpret_cast< std::add_pointer_t<Qt::CheckState>>(_a[1]))); break;
        case 4: _t->resizeToZoneContents((*reinterpret_cast< std::add_pointer_t<bool>>(_a[1]))); break;
        case 5: _t->resizeToZoneContents(); break;
        case 6: _t->handleScrollBarChange((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->zoneDeleted(); break;
        case 8: _t->moveEvent((*reinterpret_cast< std::add_pointer_t<QGraphicsSceneMoveEvent*>>(_a[1]))); break;
        case 9: _t->resizeEvent((*reinterpret_cast< std::add_pointer_t<QGraphicsSceneResizeEvent*>>(_a[1]))); break;
        case 10: _t->expandWindow(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ZoneViewWidget* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ZoneViewWidget::*)(ZoneViewWidget * )>(_a, &ZoneViewWidget::closePressed, 0))
            return;
    }
}

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

void *ZoneViewWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14ZoneViewWidgetE_t>.strings))
        return static_cast<void*>(this);
    return QGraphicsWidget::qt_metacast(_clname);
}

int ZoneViewWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QGraphicsWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    return _id;
}

// SIGNAL 0
void ZoneViewWidget::closePressed(ZoneViewWidget * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
QT_WARNING_POP
