/****************************************************************************
** Meta object code from reading C++ file 'deck_editor_database_display_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/client/ui/widgets/deck_editor/deck_editor_database_display_widget.h"
#include <QtGui/qtextcursor.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 'deck_editor_database_display_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_ZN31DeckEditorDatabaseDisplayWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto DeckEditorDatabaseDisplayWidget::qt_create_metaobjectdata<qt_meta_tag_ZN31DeckEditorDatabaseDisplayWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "DeckEditorDatabaseDisplayWidget",
        "addCardToMainDeck",
        "",
        "CardInfoPtr",
        "card",
        "addCardToSideboard",
        "decrementCardFromMainDeck",
        "decrementCardFromSideboard",
        "cardChanged",
        "_card",
        "currentCardInfo",
        "setFilterTree",
        "FilterTree*",
        "filterTree",
        "clearAllDatabaseFilters",
        "showSearchSyntaxHelp",
        "retranslateUi",
        "updateSearch",
        "search",
        "updateCard",
        "QModelIndex",
        "current",
        "actAddCardToMainDeck",
        "actAddCardToSideboard",
        "actDecrementCardFromMainDeck",
        "actDecrementCardFromSideboard",
        "databaseCustomMenu",
        "point",
        "copyDatabaseCellContents",
        "saveDbHeaderState"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'addCardToMainDeck'
        QtMocHelpers::SignalData<void(CardInfoPtr)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'addCardToSideboard'
        QtMocHelpers::SignalData<void(CardInfoPtr)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'decrementCardFromMainDeck'
        QtMocHelpers::SignalData<void(CardInfoPtr)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'decrementCardFromSideboard'
        QtMocHelpers::SignalData<void(CardInfoPtr)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'cardChanged'
        QtMocHelpers::SignalData<void(CardInfoPtr)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 9 },
        }}),
        // Slot 'currentCardInfo'
        QtMocHelpers::SlotData<CardInfoPtr() const>(10, 2, QMC::AccessPublic, 0x80000000 | 3),
        // Slot 'setFilterTree'
        QtMocHelpers::SlotData<void(FilterTree *)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'clearAllDatabaseFilters'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'showSearchSyntaxHelp'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'retranslateUi'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'updateSearch'
        QtMocHelpers::SlotData<void(const QString &)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QString, 18 },
        }}),
        // Slot 'updateCard'
        QtMocHelpers::SlotData<void(const QModelIndex &, const QModelIndex &)>(19, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 20, 21 }, { 0x80000000 | 20, 2 },
        }}),
        // Slot 'actAddCardToMainDeck'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actAddCardToSideboard'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actDecrementCardFromMainDeck'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'actDecrementCardFromSideboard'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'databaseCustomMenu'
        QtMocHelpers::SlotData<void(QPoint)>(26, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QPoint, 27 },
        }}),
        // Slot 'copyDatabaseCellContents'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'saveDbHeaderState'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DeckEditorDatabaseDisplayWidget, qt_meta_tag_ZN31DeckEditorDatabaseDisplayWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject DeckEditorDatabaseDisplayWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN31DeckEditorDatabaseDisplayWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN31DeckEditorDatabaseDisplayWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN31DeckEditorDatabaseDisplayWidgetE_t>.metaTypes,
    nullptr
} };

void DeckEditorDatabaseDisplayWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DeckEditorDatabaseDisplayWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->addCardToMainDeck((*reinterpret_cast< std::add_pointer_t<CardInfoPtr>>(_a[1]))); break;
        case 1: _t->addCardToSideboard((*reinterpret_cast< std::add_pointer_t<CardInfoPtr>>(_a[1]))); break;
        case 2: _t->decrementCardFromMainDeck((*reinterpret_cast< std::add_pointer_t<CardInfoPtr>>(_a[1]))); break;
        case 3: _t->decrementCardFromSideboard((*reinterpret_cast< std::add_pointer_t<CardInfoPtr>>(_a[1]))); break;
        case 4: _t->cardChanged((*reinterpret_cast< std::add_pointer_t<CardInfoPtr>>(_a[1]))); break;
        case 5: { CardInfoPtr _r = _t->currentCardInfo();
            if (_a[0]) *reinterpret_cast< CardInfoPtr*>(_a[0]) = std::move(_r); }  break;
        case 6: _t->setFilterTree((*reinterpret_cast< std::add_pointer_t<FilterTree*>>(_a[1]))); break;
        case 7: _t->clearAllDatabaseFilters(); break;
        case 8: _t->showSearchSyntaxHelp(); break;
        case 9: _t->retranslateUi(); break;
        case 10: _t->updateSearch((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
        case 11: _t->updateCard((*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QModelIndex>>(_a[2]))); break;
        case 12: _t->actAddCardToMainDeck(); break;
        case 13: _t->actAddCardToSideboard(); break;
        case 14: _t->actDecrementCardFromMainDeck(); break;
        case 15: _t->actDecrementCardFromSideboard(); break;
        case 16: _t->databaseCustomMenu((*reinterpret_cast< std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 17: _t->copyDatabaseCellContents(); break;
        case 18: _t->saveDbHeaderState(); 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< CardInfoPtr >(); break;
            }
            break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< CardInfoPtr >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< CardInfoPtr >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< CardInfoPtr >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< CardInfoPtr >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< FilterTree* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DeckEditorDatabaseDisplayWidget::*)(CardInfoPtr )>(_a, &DeckEditorDatabaseDisplayWidget::addCardToMainDeck, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DeckEditorDatabaseDisplayWidget::*)(CardInfoPtr )>(_a, &DeckEditorDatabaseDisplayWidget::addCardToSideboard, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (DeckEditorDatabaseDisplayWidget::*)(CardInfoPtr )>(_a, &DeckEditorDatabaseDisplayWidget::decrementCardFromMainDeck, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (DeckEditorDatabaseDisplayWidget::*)(CardInfoPtr )>(_a, &DeckEditorDatabaseDisplayWidget::decrementCardFromSideboard, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (DeckEditorDatabaseDisplayWidget::*)(CardInfoPtr )>(_a, &DeckEditorDatabaseDisplayWidget::cardChanged, 4))
            return;
    }
}

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

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

int DeckEditorDatabaseDisplayWidget::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 < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    return _id;
}

// SIGNAL 0
void DeckEditorDatabaseDisplayWidget::addCardToMainDeck(CardInfoPtr _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void DeckEditorDatabaseDisplayWidget::addCardToSideboard(CardInfoPtr _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void DeckEditorDatabaseDisplayWidget::decrementCardFromMainDeck(CardInfoPtr _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void DeckEditorDatabaseDisplayWidget::decrementCardFromSideboard(CardInfoPtr _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void DeckEditorDatabaseDisplayWidget::cardChanged(CardInfoPtr _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
