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

#include "../../../../../rpcs3/rpcs3/rpcs3qt/game_list_grid.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 'game_list_grid.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.9.2. 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_ZN14game_list_gridE_t {};
} // unnamed namespace

template <> constexpr inline auto game_list_grid::qt_create_metaobjectdata<qt_meta_tag_ZN14game_list_gridE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "game_list_grid",
        "FocusToSearchBar",
        "",
        "ItemDoubleClicked",
        "game_info",
        "game",
        "ItemSelectionChanged",
        "IconReady",
        "const movie_item_base*",
        "item",
        "FocusAndSelectFirstEntryIfNoneIs"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'FocusToSearchBar'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'ItemDoubleClicked'
        QtMocHelpers::SignalData<void(const game_info &)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'ItemSelectionChanged'
        QtMocHelpers::SignalData<void(const game_info &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'IconReady'
        QtMocHelpers::SignalData<void(const movie_item_base *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Slot 'FocusAndSelectFirstEntryIfNoneIs'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<game_list_grid, qt_meta_tag_ZN14game_list_gridE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject game_list_grid::staticMetaObject = { {
    QMetaObject::SuperData::link<flow_widget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14game_list_gridE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14game_list_gridE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14game_list_gridE_t>.metaTypes,
    nullptr
} };

void game_list_grid::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<game_list_grid *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->FocusToSearchBar(); break;
        case 1: _t->ItemDoubleClicked((*reinterpret_cast< std::add_pointer_t<game_info>>(_a[1]))); break;
        case 2: _t->ItemSelectionChanged((*reinterpret_cast< std::add_pointer_t<game_info>>(_a[1]))); break;
        case 3: _t->IconReady((*reinterpret_cast< std::add_pointer_t<const movie_item_base*>>(_a[1]))); break;
        case 4: _t->FocusAndSelectFirstEntryIfNoneIs(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); 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< game_info >(); 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< game_info >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (game_list_grid::*)()>(_a, &game_list_grid::FocusToSearchBar, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (game_list_grid::*)(const game_info & )>(_a, &game_list_grid::ItemDoubleClicked, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (game_list_grid::*)(const game_info & )>(_a, &game_list_grid::ItemSelectionChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (game_list_grid::*)(const movie_item_base * )>(_a, &game_list_grid::IconReady, 3))
            return;
    }
}

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

void *game_list_grid::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14game_list_gridE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "game_list_base"))
        return static_cast< game_list_base*>(this);
    return flow_widget::qt_metacast(_clname);
}

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

// SIGNAL 0
void game_list_grid::FocusToSearchBar()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void game_list_grid::ItemDoubleClicked(const game_info & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void game_list_grid::ItemSelectionChanged(const game_info & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void game_list_grid::IconReady(const movie_item_base * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
