/****************************************************************************
** Meta object code from reading C++ file 'ksortfilterproxymodel.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/qml/ksortfilterproxymodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'ksortfilterproxymodel.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_KSortFilterProxyModel_t {
    QByteArrayData data[30];
    char stringdata0[429];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KSortFilterProxyModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KSortFilterProxyModel_t qt_meta_stringdata_KSortFilterProxyModel = {
    {
QT_MOC_LITERAL(0, 0, 21), // "KSortFilterProxyModel"
QT_MOC_LITERAL(1, 22, 19), // "filterStringChanged"
QT_MOC_LITERAL(2, 42, 0), // ""
QT_MOC_LITERAL(3, 43, 17), // "filterRoleChanged"
QT_MOC_LITERAL(4, 61, 15), // "sortRoleChanged"
QT_MOC_LITERAL(5, 77, 16), // "sortOrderChanged"
QT_MOC_LITERAL(6, 94, 17), // "sortColumnChanged"
QT_MOC_LITERAL(7, 112, 18), // "sourceModelChanged"
QT_MOC_LITERAL(8, 131, 24), // "filterRowCallbackChanged"
QT_MOC_LITERAL(9, 156, 8), // "QJSValue"
QT_MOC_LITERAL(10, 165, 27), // "filterColumnCallbackChanged"
QT_MOC_LITERAL(11, 193, 15), // "rowCountChanged"
QT_MOC_LITERAL(12, 209, 16), // "invalidateFilter"
QT_MOC_LITERAL(13, 226, 13), // "syncRoleNames"
QT_MOC_LITERAL(14, 240, 9), // "removeRow"
QT_MOC_LITERAL(15, 250, 3), // "row"
QT_MOC_LITERAL(16, 254, 11), // "QModelIndex"
QT_MOC_LITERAL(17, 266, 6), // "parent"
QT_MOC_LITERAL(18, 273, 10), // "removeRows"
QT_MOC_LITERAL(19, 284, 5), // "count"
QT_MOC_LITERAL(20, 290, 11), // "sourceModel"
QT_MOC_LITERAL(21, 302, 19), // "QAbstractItemModel*"
QT_MOC_LITERAL(22, 322, 12), // "filterString"
QT_MOC_LITERAL(23, 335, 17), // "filterRowCallback"
QT_MOC_LITERAL(24, 353, 20), // "filterColumnCallback"
QT_MOC_LITERAL(25, 374, 10), // "filterRole"
QT_MOC_LITERAL(26, 385, 8), // "sortRole"
QT_MOC_LITERAL(27, 394, 9), // "sortOrder"
QT_MOC_LITERAL(28, 404, 13), // "Qt::SortOrder"
QT_MOC_LITERAL(29, 418, 10) // "sortColumn"

    },
    "KSortFilterProxyModel\0filterStringChanged\0"
    "\0filterRoleChanged\0sortRoleChanged\0"
    "sortOrderChanged\0sortColumnChanged\0"
    "sourceModelChanged\0filterRowCallbackChanged\0"
    "QJSValue\0filterColumnCallbackChanged\0"
    "rowCountChanged\0invalidateFilter\0"
    "syncRoleNames\0removeRow\0row\0QModelIndex\0"
    "parent\0removeRows\0count\0sourceModel\0"
    "QAbstractItemModel*\0filterString\0"
    "filterRowCallback\0filterColumnCallback\0"
    "filterRole\0sortRole\0sortOrder\0"
    "Qt::SortOrder\0sortColumn"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KSortFilterProxyModel[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      15,   14, // methods
       9,  126, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       9,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   89,    2, 0x06 /* Public */,
       3,    0,   90,    2, 0x06 /* Public */,
       4,    0,   91,    2, 0x06 /* Public */,
       5,    0,   92,    2, 0x06 /* Public */,
       6,    0,   93,    2, 0x06 /* Public */,
       7,    1,   94,    2, 0x06 /* Public */,
       8,    1,   97,    2, 0x06 /* Public */,
      10,    1,  100,    2, 0x06 /* Public */,
      11,    0,  103,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      12,    0,  104,    2, 0x0a /* Public */,
      13,    0,  105,    2, 0x09 /* Protected */,

 // methods: name, argc, parameters, tag, flags
      14,    2,  106,    2, 0x02 /* Public */,
      14,    1,  111,    2, 0x22 /* Public | MethodCloned */,
      18,    3,  114,    2, 0x02 /* Public */,
      18,    2,  121,    2, 0x22 /* Public | MethodCloned */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QObjectStar,    2,
    QMetaType::Void, 0x80000000 | 9,    2,
    QMetaType::Void, 0x80000000 | 9,    2,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,

 // methods: parameters
    QMetaType::Bool, QMetaType::Int, 0x80000000 | 16,   15,   17,
    QMetaType::Bool, QMetaType::Int,   15,
    QMetaType::Bool, QMetaType::Int, QMetaType::Int, 0x80000000 | 16,   15,   19,   17,
    QMetaType::Bool, QMetaType::Int, QMetaType::Int,   15,   19,

 // properties: name, type, flags
      20, 0x80000000 | 21, 0x0049500b,
      22, QMetaType::QString, 0x00495103,
      23, 0x80000000 | 9, 0x0049510b,
      24, 0x80000000 | 9, 0x0049510b,
      25, QMetaType::QVariant, 0x00495103,
      26, QMetaType::QVariant, 0x00495103,
      27, 0x80000000 | 28, 0x0049510b,
      29, QMetaType::Int, 0x00495103,
      19, QMetaType::Int, 0x00495001,

 // properties: notify_signal_id
       5,
       0,
       6,
       7,
       1,
       2,
       3,
       4,
       8,

       0        // eod
};

void KSortFilterProxyModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<KSortFilterProxyModel *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->filterStringChanged(); break;
        case 1: _t->filterRoleChanged(); break;
        case 2: _t->sortRoleChanged(); break;
        case 3: _t->sortOrderChanged(); break;
        case 4: _t->sortColumnChanged(); break;
        case 5: _t->sourceModelChanged((*reinterpret_cast< QObject*(*)>(_a[1]))); break;
        case 6: _t->filterRowCallbackChanged((*reinterpret_cast< const QJSValue(*)>(_a[1]))); break;
        case 7: _t->filterColumnCallbackChanged((*reinterpret_cast< const QJSValue(*)>(_a[1]))); break;
        case 8: _t->rowCountChanged(); break;
        case 9: _t->invalidateFilter(); break;
        case 10: _t->syncRoleNames(); break;
        case 11: { bool _r = _t->removeRow((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 12: { bool _r = _t->removeRow((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 13: { bool _r = _t->removeRows((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< const QModelIndex(*)>(_a[3])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 14: { bool _r = _t->removeRows((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (KSortFilterProxyModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KSortFilterProxyModel::filterStringChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (KSortFilterProxyModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KSortFilterProxyModel::filterRoleChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (KSortFilterProxyModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KSortFilterProxyModel::sortRoleChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (KSortFilterProxyModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KSortFilterProxyModel::sortOrderChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (KSortFilterProxyModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KSortFilterProxyModel::sortColumnChanged)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (KSortFilterProxyModel::*)(QObject * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KSortFilterProxyModel::sourceModelChanged)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (KSortFilterProxyModel::*)(const QJSValue & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KSortFilterProxyModel::filterRowCallbackChanged)) {
                *result = 6;
                return;
            }
        }
        {
            using _t = void (KSortFilterProxyModel::*)(const QJSValue & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KSortFilterProxyModel::filterColumnCallbackChanged)) {
                *result = 7;
                return;
            }
        }
        {
            using _t = void (KSortFilterProxyModel::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KSortFilterProxyModel::rowCountChanged)) {
                *result = 8;
                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;
        case 3:
        case 2:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QJSValue >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<KSortFilterProxyModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QAbstractItemModel**>(_v) = _t->sourceModel(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->filterString(); break;
        case 2: *reinterpret_cast< QJSValue*>(_v) = _t->filterRowCallback(); break;
        case 3: *reinterpret_cast< QJSValue*>(_v) = _t->filterColumnCallback(); break;
        case 4: *reinterpret_cast< QVariant*>(_v) = _t->filterRole(); break;
        case 5: *reinterpret_cast< QVariant*>(_v) = _t->sortRole(); break;
        case 6: *reinterpret_cast< Qt::SortOrder*>(_v) = _t->sortOrder(); break;
        case 7: *reinterpret_cast< int*>(_v) = _t->sortColumn(); break;
        case 8: *reinterpret_cast< int*>(_v) = _t->rowCount(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<KSortFilterProxyModel *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setModel(*reinterpret_cast< QAbstractItemModel**>(_v)); break;
        case 1: _t->setFilterString(*reinterpret_cast< QString*>(_v)); break;
        case 2: _t->setFilterRowCallback(*reinterpret_cast< QJSValue*>(_v)); break;
        case 3: _t->setFilterColumnCallback(*reinterpret_cast< QJSValue*>(_v)); break;
        case 4: _t->setFilterRole(*reinterpret_cast< QVariant*>(_v)); break;
        case 5: _t->setSortRole(*reinterpret_cast< QVariant*>(_v)); break;
        case 6: _t->setSortOrder(*reinterpret_cast< Qt::SortOrder*>(_v)); break;
        case 7: _t->setSortColumn(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject KSortFilterProxyModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QSortFilterProxyModel::staticMetaObject>(),
    qt_meta_stringdata_KSortFilterProxyModel.data,
    qt_meta_data_KSortFilterProxyModel,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *KSortFilterProxyModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KSortFilterProxyModel.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    return QSortFilterProxyModel::qt_metacast(_clname);
}

int KSortFilterProxyModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QSortFilterProxyModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
#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 -= 9;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 9;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

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

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

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

// SIGNAL 3
void KSortFilterProxyModel::sortOrderChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void KSortFilterProxyModel::sortColumnChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void KSortFilterProxyModel::sourceModelChanged(QObject * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void KSortFilterProxyModel::filterRowCallbackChanged(const QJSValue & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}

// SIGNAL 7
void KSortFilterProxyModel::filterColumnCallbackChanged(const QJSValue & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}

// SIGNAL 8
void KSortFilterProxyModel::rowCountChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
