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

#include "../../../../../kitemmodels-6.25.0/src/core/kselectionproxymodel.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 'kselectionproxymodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.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_ZN20KSelectionProxyModelE_t {};
} // unnamed namespace

template <> constexpr inline auto KSelectionProxyModel::qt_create_metaobjectdata<qt_meta_tag_ZN20KSelectionProxyModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KSelectionProxyModel",
        "rootIndexAboutToBeRemoved",
        "",
        "QModelIndex",
        "removeRootIndex",
        "rootIndexAdded",
        "newIndex",
        "rootSelectionAboutToBeRemoved",
        "QItemSelection",
        "selection",
        "rootSelectionAdded",
        "selectionModelChanged",
        "filterBehaviorChanged",
        "sourceRowsAboutToBeInserted",
        "sourceRowsInserted",
        "sourceRowsAboutToBeRemoved",
        "sourceRowsRemoved",
        "sourceRowsAboutToBeMoved",
        "sourceRowsMoved",
        "sourceModelAboutToBeReset",
        "sourceModelReset",
        "sourceLayoutAboutToBeChanged",
        "sourceLayoutChanged",
        "sourceDataChanged",
        "selectionChanged",
        "selected",
        "deselected",
        "sourceModelDestroyed",
        "filterBehavior",
        "FilterBehavior",
        "selectionModel",
        "QItemSelectionModel*",
        "SubTrees",
        "SubTreeRoots",
        "SubTreesWithoutRoots",
        "ExactSelection",
        "ChildrenOfExactSelection",
        "InvalidBehavior"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'rootIndexAboutToBeRemoved'
        QtMocHelpers::SignalData<void(const QModelIndex &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'rootIndexAdded'
        QtMocHelpers::SignalData<void(const QModelIndex &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 6 },
        }}),
        // Signal 'rootSelectionAboutToBeRemoved'
        QtMocHelpers::SignalData<void(const QItemSelection &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'rootSelectionAdded'
        QtMocHelpers::SignalData<void(const QItemSelection &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 9 },
        }}),
        // Signal 'selectionModelChanged'
        QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'filterBehaviorChanged'
        QtMocHelpers::SignalData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sourceRowsAboutToBeInserted'
        QtMocHelpers::SlotData<void(const QModelIndex &, int, int)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 2 }, { QMetaType::Int, 2 }, { QMetaType::Int, 2 },
        }}),
        // Slot 'sourceRowsInserted'
        QtMocHelpers::SlotData<void(const QModelIndex &, int, int)>(14, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 2 }, { QMetaType::Int, 2 }, { QMetaType::Int, 2 },
        }}),
        // Slot 'sourceRowsAboutToBeRemoved'
        QtMocHelpers::SlotData<void(const QModelIndex &, int, int)>(15, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 2 }, { QMetaType::Int, 2 }, { QMetaType::Int, 2 },
        }}),
        // Slot 'sourceRowsRemoved'
        QtMocHelpers::SlotData<void(const QModelIndex &, int, int)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 2 }, { QMetaType::Int, 2 }, { QMetaType::Int, 2 },
        }}),
        // Slot 'sourceRowsAboutToBeMoved'
        QtMocHelpers::SlotData<void(const QModelIndex &, int, int, const QModelIndex &, int)>(17, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 2 }, { QMetaType::Int, 2 }, { QMetaType::Int, 2 }, { 0x80000000 | 3, 2 },
            { QMetaType::Int, 2 },
        }}),
        // Slot 'sourceRowsMoved'
        QtMocHelpers::SlotData<void(const QModelIndex &, int, int, const QModelIndex &, int)>(18, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 2 }, { QMetaType::Int, 2 }, { QMetaType::Int, 2 }, { 0x80000000 | 3, 2 },
            { QMetaType::Int, 2 },
        }}),
        // Slot 'sourceModelAboutToBeReset'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'sourceModelReset'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'sourceLayoutAboutToBeChanged'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'sourceLayoutChanged'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'sourceDataChanged'
        QtMocHelpers::SlotData<void(const QModelIndex &, const QModelIndex &)>(23, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 3, 2 }, { 0x80000000 | 3, 2 },
        }}),
        // Slot 'selectionChanged'
        QtMocHelpers::SlotData<void(const QItemSelection &, const QItemSelection &)>(24, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 8, 25 }, { 0x80000000 | 8, 26 },
        }}),
        // Slot 'sourceModelDestroyed'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'filterBehavior'
        QtMocHelpers::PropertyData<enum FilterBehavior>(28, 0x80000000 | 29, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 5),
        // property 'selectionModel'
        QtMocHelpers::PropertyData<QItemSelectionModel*>(30, 0x80000000 | 31, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 4),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'FilterBehavior'
        QtMocHelpers::EnumData<enum FilterBehavior>(29, 29, QMC::EnumFlags{}).add({
            {   32, FilterBehavior::SubTrees },
            {   33, FilterBehavior::SubTreeRoots },
            {   34, FilterBehavior::SubTreesWithoutRoots },
            {   35, FilterBehavior::ExactSelection },
            {   36, FilterBehavior::ChildrenOfExactSelection },
            {   37, FilterBehavior::InvalidBehavior },
        }),
    };
    return QtMocHelpers::metaObjectData<KSelectionProxyModel, qt_meta_tag_ZN20KSelectionProxyModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KSelectionProxyModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractProxyModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20KSelectionProxyModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN20KSelectionProxyModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN20KSelectionProxyModelE_t>.metaTypes,
    nullptr
} };

void KSelectionProxyModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KSelectionProxyModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->rootIndexAboutToBeRemoved((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])), QPrivateSignal()); break;
        case 1: _t->rootIndexAdded((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])), QPrivateSignal()); break;
        case 2: _t->rootSelectionAboutToBeRemoved((*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[1])), QPrivateSignal()); break;
        case 3: _t->rootSelectionAdded((*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[1])), QPrivateSignal()); break;
        case 4: _t->selectionModelChanged(QPrivateSignal()); break;
        case 5: _t->filterBehaviorChanged(QPrivateSignal()); break;
        case 6: _t->d_func()->sourceRowsAboutToBeInserted((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 7: _t->d_func()->sourceRowsInserted((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 8: _t->d_func()->sourceRowsAboutToBeRemoved((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 9: _t->d_func()->sourceRowsRemoved((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 10: _t->d_func()->sourceRowsAboutToBeMoved((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[5]))); break;
        case 11: _t->d_func()->sourceRowsMoved((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[4])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[5]))); break;
        case 12: _t->d_func()->sourceModelAboutToBeReset(); break;
        case 13: _t->d_func()->sourceModelReset(); break;
        case 14: _t->d_func()->sourceLayoutAboutToBeChanged(); break;
        case 15: _t->d_func()->sourceLayoutChanged(); break;
        case 16: _t->d_func()->sourceDataChanged((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[2]))); break;
        case 17: _t->d_func()->selectionChanged((*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[2]))); break;
        case 18: _t->d_func()->sourceModelDestroyed(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); 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< QItemSelection >(); 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< QItemSelection >(); break;
            }
            break;
        case 17:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QItemSelection >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KSelectionProxyModel::*)(const QModelIndex & , QPrivateSignal)>(_a, &KSelectionProxyModel::rootIndexAboutToBeRemoved, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSelectionProxyModel::*)(const QModelIndex & , QPrivateSignal)>(_a, &KSelectionProxyModel::rootIndexAdded, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSelectionProxyModel::*)(const QItemSelection & , QPrivateSignal)>(_a, &KSelectionProxyModel::rootSelectionAboutToBeRemoved, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSelectionProxyModel::*)(const QItemSelection & , QPrivateSignal)>(_a, &KSelectionProxyModel::rootSelectionAdded, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSelectionProxyModel::*)(QPrivateSignal)>(_a, &KSelectionProxyModel::selectionModelChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSelectionProxyModel::*)(QPrivateSignal)>(_a, &KSelectionProxyModel::filterBehaviorChanged, 5))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 1:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QItemSelectionModel* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum FilterBehavior*>(_v) = _t->filterBehavior(); break;
        case 1: *reinterpret_cast<QItemSelectionModel**>(_v) = _t->selectionModel(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setFilterBehavior(*reinterpret_cast<enum FilterBehavior*>(_v)); break;
        case 1: _t->setSelectionModel(*reinterpret_cast<QItemSelectionModel**>(_v)); break;
        default: break;
        }
    }
}

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

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

int KSelectionProxyModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractProxyModel::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;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    return _id;
}

// SIGNAL 0
void KSelectionProxyModel::rootIndexAboutToBeRemoved(const QModelIndex & _t1, QPrivateSignal _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void KSelectionProxyModel::rootIndexAdded(const QModelIndex & _t1, QPrivateSignal _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void KSelectionProxyModel::rootSelectionAboutToBeRemoved(const QItemSelection & _t1, QPrivateSignal _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void KSelectionProxyModel::rootSelectionAdded(const QItemSelection & _t1, QPrivateSignal _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1, _t2);
}

// SIGNAL 4
void KSelectionProxyModel::selectionModelChanged(QPrivateSignal _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void KSelectionProxyModel::filterBehaviorChanged(QPrivateSignal _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
