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

#include "../../../bibletime/src/frontend/searchdialog/cmoduleresultview.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 'cmoduleresultview.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.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_ZN6Search17CModuleResultViewE_t {};
} // unnamed namespace

template <> constexpr inline auto Search::CModuleResultView::qt_create_metaobjectdata<qt_meta_tag_ZN6Search17CModuleResultViewE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Search::CModuleResultView",
        "moduleSelected",
        "",
        "const CSwordModuleInfo*",
        "CSwordModuleSearch::ModuleResultList",
        "moduleChanged",
        "strongsSelected",
        "CSwordModuleInfo*",
        "executed",
        "QTreeWidgetItem*",
        "contextMenuEvent",
        "QContextMenuEvent*",
        "event"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'moduleSelected'
        QtMocHelpers::SignalData<void(CSwordModuleInfo const *, CSwordModuleSearch::ModuleResultList const &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 }, { 0x80000000 | 4, 2 },
        }}),
        // Signal 'moduleChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'strongsSelected'
        QtMocHelpers::SignalData<void(CSwordModuleInfo *, const QStringList &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 2 }, { QMetaType::QStringList, 2 },
        }}),
        // Slot 'executed'
        QtMocHelpers::SlotData<void(QTreeWidgetItem *, QTreeWidgetItem *)>(8, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 9, 2 }, { 0x80000000 | 9, 2 },
        }}),
        // Slot 'contextMenuEvent'
        QtMocHelpers::SlotData<void(QContextMenuEvent *)>(10, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<CModuleResultView, qt_meta_tag_ZN6Search17CModuleResultViewE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Search::CModuleResultView::staticMetaObject = { {
    QMetaObject::SuperData::link<QTreeWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Search17CModuleResultViewE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Search17CModuleResultViewE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6Search17CModuleResultViewE_t>.metaTypes,
    nullptr
} };

void Search::CModuleResultView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CModuleResultView *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->moduleSelected((*reinterpret_cast<std::add_pointer_t<const CSwordModuleInfo*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<CSwordModuleSearch::ModuleResultList>>(_a[2]))); break;
        case 1: _t->moduleChanged(); break;
        case 2: _t->strongsSelected((*reinterpret_cast<std::add_pointer_t<CSwordModuleInfo*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[2]))); break;
        case 3: _t->executed((*reinterpret_cast<std::add_pointer_t<QTreeWidgetItem*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QTreeWidgetItem*>>(_a[2]))); break;
        case 4: _t->contextMenuEvent((*reinterpret_cast<std::add_pointer_t<QContextMenuEvent*>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CModuleResultView::*)(CSwordModuleInfo const * , CSwordModuleSearch::ModuleResultList const & )>(_a, &CModuleResultView::moduleSelected, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CModuleResultView::*)()>(_a, &CModuleResultView::moduleChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (CModuleResultView::*)(CSwordModuleInfo * , const QStringList & )>(_a, &CModuleResultView::strongsSelected, 2))
            return;
    }
}

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

void *Search::CModuleResultView::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6Search17CModuleResultViewE_t>.strings))
        return static_cast<void*>(this);
    return QTreeWidget::qt_metacast(_clname);
}

int Search::CModuleResultView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QTreeWidget::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)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 5;
    }
    return _id;
}

// SIGNAL 0
void Search::CModuleResultView::moduleSelected(CSwordModuleInfo const * _t1, CSwordModuleSearch::ModuleResultList const & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void Search::CModuleResultView::moduleChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Search::CModuleResultView::strongsSelected(CSwordModuleInfo * _t1, const QStringList & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}
QT_WARNING_POP
