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

#include <memory>
#include "../../../../../kitemmodels-5.116.0/src/core/kdescendantsproxymodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kdescendantsproxymodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.19. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_KDescendantsProxyModel_t {
    QByteArrayData data[29];
    char stringdata0[559];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KDescendantsProxyModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KDescendantsProxyModel_t qt_meta_stringdata_KDescendantsProxyModel = {
    {
QT_MOC_LITERAL(0, 0, 22), // "KDescendantsProxyModel"
QT_MOC_LITERAL(1, 23, 18), // "sourceModelChanged"
QT_MOC_LITERAL(2, 42, 0), // ""
QT_MOC_LITERAL(3, 43, 26), // "displayAncestorDataChanged"
QT_MOC_LITERAL(4, 70, 24), // "ancestorSeparatorChanged"
QT_MOC_LITERAL(5, 95, 23), // "expandsByDefaultChanged"
QT_MOC_LITERAL(6, 119, 7), // "expands"
QT_MOC_LITERAL(7, 127, 19), // "sourceIndexExpanded"
QT_MOC_LITERAL(8, 147, 11), // "QModelIndex"
QT_MOC_LITERAL(9, 159, 11), // "sourceIndex"
QT_MOC_LITERAL(10, 171, 20), // "sourceIndexCollapsed"
QT_MOC_LITERAL(11, 192, 27), // "sourceRowsAboutToBeInserted"
QT_MOC_LITERAL(12, 220, 18), // "sourceRowsInserted"
QT_MOC_LITERAL(13, 239, 26), // "sourceRowsAboutToBeRemoved"
QT_MOC_LITERAL(14, 266, 17), // "sourceRowsRemoved"
QT_MOC_LITERAL(15, 284, 24), // "sourceRowsAboutToBeMoved"
QT_MOC_LITERAL(16, 309, 15), // "sourceRowsMoved"
QT_MOC_LITERAL(17, 325, 25), // "sourceModelAboutToBeReset"
QT_MOC_LITERAL(18, 351, 16), // "sourceModelReset"
QT_MOC_LITERAL(19, 368, 28), // "sourceLayoutAboutToBeChanged"
QT_MOC_LITERAL(20, 397, 19), // "sourceLayoutChanged"
QT_MOC_LITERAL(21, 417, 17), // "sourceDataChanged"
QT_MOC_LITERAL(22, 435, 20), // "sourceModelDestroyed"
QT_MOC_LITERAL(23, 456, 21), // "processPendingParents"
QT_MOC_LITERAL(24, 478, 5), // "model"
QT_MOC_LITERAL(25, 484, 19), // "QAbstractItemModel*"
QT_MOC_LITERAL(26, 504, 19), // "displayAncestorData"
QT_MOC_LITERAL(27, 524, 17), // "ancestorSeparator"
QT_MOC_LITERAL(28, 542, 16) // "expandsByDefault"

    },
    "KDescendantsProxyModel\0sourceModelChanged\0"
    "\0displayAncestorDataChanged\0"
    "ancestorSeparatorChanged\0"
    "expandsByDefaultChanged\0expands\0"
    "sourceIndexExpanded\0QModelIndex\0"
    "sourceIndex\0sourceIndexCollapsed\0"
    "sourceRowsAboutToBeInserted\0"
    "sourceRowsInserted\0sourceRowsAboutToBeRemoved\0"
    "sourceRowsRemoved\0sourceRowsAboutToBeMoved\0"
    "sourceRowsMoved\0sourceModelAboutToBeReset\0"
    "sourceModelReset\0sourceLayoutAboutToBeChanged\0"
    "sourceLayoutChanged\0sourceDataChanged\0"
    "sourceModelDestroyed\0processPendingParents\0"
    "model\0QAbstractItemModel*\0displayAncestorData\0"
    "ancestorSeparator\0expandsByDefault"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KDescendantsProxyModel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      19,   14, // methods
       4,  182, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       6,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,  109,    2, 0x06 /* Public */,
       3,    0,  110,    2, 0x06 /* Public */,
       4,    0,  111,    2, 0x06 /* Public */,
       5,    1,  112,    2, 0x06 /* Public */,
       7,    1,  115,    2, 0x06 /* Public */,
      10,    1,  118,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      11,    3,  121,    2, 0x08 /* Private */,
      12,    3,  128,    2, 0x08 /* Private */,
      13,    3,  135,    2, 0x08 /* Private */,
      14,    3,  142,    2, 0x08 /* Private */,
      15,    5,  149,    2, 0x08 /* Private */,
      16,    5,  160,    2, 0x08 /* Private */,
      17,    0,  171,    2, 0x08 /* Private */,
      18,    0,  172,    2, 0x08 /* Private */,
      19,    0,  173,    2, 0x08 /* Private */,
      20,    0,  174,    2, 0x08 /* Private */,
      21,    2,  175,    2, 0x08 /* Private */,
      22,    0,  180,    2, 0x08 /* Private */,
      23,    0,  181,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,    6,
    QMetaType::Void, 0x80000000 | 8,    9,
    QMetaType::Void, 0x80000000 | 8,    9,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 8, QMetaType::Int, QMetaType::Int,    2,    2,    2,
    QMetaType::Void, 0x80000000 | 8, QMetaType::Int, QMetaType::Int,    2,    2,    2,
    QMetaType::Void, 0x80000000 | 8, QMetaType::Int, QMetaType::Int,    2,    2,    2,
    QMetaType::Void, 0x80000000 | 8, QMetaType::Int, QMetaType::Int,    2,    2,    2,
    QMetaType::Void, 0x80000000 | 8, QMetaType::Int, QMetaType::Int, 0x80000000 | 8, QMetaType::Int,    2,    2,    2,    2,    2,
    QMetaType::Void, 0x80000000 | 8, QMetaType::Int, QMetaType::Int, 0x80000000 | 8, QMetaType::Int,    2,    2,    2,    2,    2,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 8, 0x80000000 | 8,    2,    2,
    QMetaType::Void,
    QMetaType::Void,

 // properties: name, type, flags
      24, 0x80000000 | 25, 0x0049500b,
      26, QMetaType::Bool, 0x00495103,
      27, QMetaType::QString, 0x00495103,
      28, QMetaType::Bool, 0x00495103,

 // properties: notify_signal_id
       0,
       1,
       2,
       3,

       0        // eod
};

void KDescendantsProxyModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<KDescendantsProxyModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->sourceModelChanged(); break;
        case 1: _t->displayAncestorDataChanged(); break;
        case 2: _t->ancestorSeparatorChanged(); break;
        case 3: _t->expandsByDefaultChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: _t->sourceIndexExpanded((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 5: _t->sourceIndexCollapsed((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 6: _t->d_func()->sourceRowsAboutToBeInserted((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 7: _t->d_func()->sourceRowsInserted((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 8: _t->d_func()->sourceRowsAboutToBeRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 9: _t->d_func()->sourceRowsRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 10: _t->d_func()->sourceRowsAboutToBeMoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< const QModelIndex(*)>(_a[4])),(*reinterpret_cast< int(*)>(_a[5]))); break;
        case 11: _t->d_func()->sourceRowsMoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< const QModelIndex(*)>(_a[4])),(*reinterpret_cast< 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< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        case 17: _t->d_func()->sourceModelDestroyed(); break;
        case 18: _t->d_func()->processPendingParents(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (KDescendantsProxyModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KDescendantsProxyModel::sourceModelChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (KDescendantsProxyModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KDescendantsProxyModel::displayAncestorDataChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (KDescendantsProxyModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KDescendantsProxyModel::ancestorSeparatorChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (KDescendantsProxyModel::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KDescendantsProxyModel::expandsByDefaultChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (KDescendantsProxyModel::*)(const QModelIndex & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KDescendantsProxyModel::sourceIndexExpanded)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (KDescendantsProxyModel::*)(const QModelIndex & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KDescendantsProxyModel::sourceIndexCollapsed)) {
                *result = 5;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAbstractItemModel* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<KDescendantsProxyModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QAbstractItemModel**>(_v) = _t->sourceModel(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->displayAncestorData(); break;
        case 2: *reinterpret_cast< QString*>(_v) = _t->ancestorSeparator(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->expandsByDefault(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<KDescendantsProxyModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setSourceModel(*reinterpret_cast< QAbstractItemModel**>(_v)); break;
        case 1: _t->setDisplayAncestorData(*reinterpret_cast< bool*>(_v)); break;
        case 2: _t->setAncestorSeparator(*reinterpret_cast< QString*>(_v)); break;
        case 3: _t->setExpandsByDefault(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject KDescendantsProxyModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractProxyModel::staticMetaObject>(),
    qt_meta_stringdata_KDescendantsProxyModel.data,
    qt_meta_data_KDescendantsProxyModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *KDescendantsProxyModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KDescendantsProxyModel.stringdata0))
        return static_cast<void*>(this);
    return QAbstractProxyModel::qt_metacast(_clname);
}

int KDescendantsProxyModel::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;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 19;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 4;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 4;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

// SIGNAL 1
void KDescendantsProxyModel::displayAncestorDataChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void KDescendantsProxyModel::ancestorSeparatorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void KDescendantsProxyModel::expandsByDefaultChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void KDescendantsProxyModel::sourceIndexExpanded(const QModelIndex & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void KDescendantsProxyModel::sourceIndexCollapsed(const QModelIndex & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
