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

#include "../../../../src/calligraplan-3.1.0/src/libs/models/kptworkpackagemodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kptworkpackagemodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_KPlato__WorkPackageModel_t {
    QByteArrayData data[1];
    char stringdata0[25];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__WorkPackageModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__WorkPackageModel_t qt_meta_stringdata_KPlato__WorkPackageModel = {
    {
QT_MOC_LITERAL(0, 0, 24) // "KPlato::WorkPackageModel"

    },
    "KPlato::WorkPackageModel"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__WorkPackageModel[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       0,    0, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // enums: name, flags, count, data

 // enum data: key, value

       0        // eod
};

void KPlato::WorkPackageModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    Q_UNUSED(_o);
    Q_UNUSED(_id);
    Q_UNUSED(_c);
    Q_UNUSED(_a);
}

const QMetaObject KPlato::WorkPackageModel::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KPlato__WorkPackageModel.data,
      qt_meta_data_KPlato__WorkPackageModel,  qt_static_metacall, nullptr, nullptr}
};


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

void *KPlato::WorkPackageModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KPlato__WorkPackageModel.stringdata0))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int KPlato::WorkPackageModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    return _id;
}
struct qt_meta_stringdata_KPlato__WPSortFilterProxyModel_t {
    QByteArrayData data[1];
    char stringdata0[31];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__WPSortFilterProxyModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__WPSortFilterProxyModel_t qt_meta_stringdata_KPlato__WPSortFilterProxyModel = {
    {
QT_MOC_LITERAL(0, 0, 30) // "KPlato::WPSortFilterProxyModel"

    },
    "KPlato::WPSortFilterProxyModel"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__WPSortFilterProxyModel[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       0,    0, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

       0        // eod
};

void KPlato::WPSortFilterProxyModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    Q_UNUSED(_o);
    Q_UNUSED(_id);
    Q_UNUSED(_c);
    Q_UNUSED(_a);
}

const QMetaObject KPlato::WPSortFilterProxyModel::staticMetaObject = {
    { &QSortFilterProxyModel::staticMetaObject, qt_meta_stringdata_KPlato__WPSortFilterProxyModel.data,
      qt_meta_data_KPlato__WPSortFilterProxyModel,  qt_static_metacall, nullptr, nullptr}
};


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

void *KPlato::WPSortFilterProxyModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KPlato__WPSortFilterProxyModel.stringdata0))
        return static_cast<void*>(this);
    return QSortFilterProxyModel::qt_metacast(_clname);
}

int KPlato::WPSortFilterProxyModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QSortFilterProxyModel::qt_metacall(_c, _id, _a);
    return _id;
}
struct qt_meta_stringdata_KPlato__WorkPackageProxyModel_t {
    QByteArrayData data[28];
    char stringdata0[427];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__WorkPackageProxyModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__WorkPackageProxyModel_t qt_meta_stringdata_KPlato__WorkPackageProxyModel = {
    {
QT_MOC_LITERAL(0, 0, 29), // "KPlato::WorkPackageProxyModel"
QT_MOC_LITERAL(1, 30, 10), // "setProject"
QT_MOC_LITERAL(2, 41, 0), // ""
QT_MOC_LITERAL(3, 42, 8), // "Project*"
QT_MOC_LITERAL(4, 51, 7), // "project"
QT_MOC_LITERAL(5, 59, 18), // "setScheduleManager"
QT_MOC_LITERAL(6, 78, 16), // "ScheduleManager*"
QT_MOC_LITERAL(7, 95, 2), // "sm"
QT_MOC_LITERAL(8, 98, 17), // "sourceDataChanged"
QT_MOC_LITERAL(9, 116, 5), // "start"
QT_MOC_LITERAL(10, 122, 3), // "end"
QT_MOC_LITERAL(11, 126, 25), // "sourceModelAboutToBeReset"
QT_MOC_LITERAL(12, 152, 16), // "sourceModelReset"
QT_MOC_LITERAL(13, 169, 27), // "sourceRowsAboutToBeInserted"
QT_MOC_LITERAL(14, 197, 18), // "sourceRowsInserted"
QT_MOC_LITERAL(15, 216, 26), // "sourceRowsAboutToBeRemoved"
QT_MOC_LITERAL(16, 243, 6), // "parent"
QT_MOC_LITERAL(17, 250, 17), // "sourceRowsRemoved"
QT_MOC_LITERAL(18, 268, 24), // "sourceRowsAboutToBeMoved"
QT_MOC_LITERAL(19, 293, 11), // "sourceStart"
QT_MOC_LITERAL(20, 305, 9), // "sourceEnd"
QT_MOC_LITERAL(21, 315, 9), // "destStart"
QT_MOC_LITERAL(22, 325, 15), // "sourceRowsMoved"
QT_MOC_LITERAL(23, 341, 20), // "workPackageToBeAdded"
QT_MOC_LITERAL(24, 362, 5), // "Node*"
QT_MOC_LITERAL(25, 368, 16), // "workPackageAdded"
QT_MOC_LITERAL(26, 385, 22), // "workPackageToBeRemoved"
QT_MOC_LITERAL(27, 408, 18) // "workPackageRemoved"

    },
    "KPlato::WorkPackageProxyModel\0setProject\0"
    "\0Project*\0project\0setScheduleManager\0"
    "ScheduleManager*\0sm\0sourceDataChanged\0"
    "start\0end\0sourceModelAboutToBeReset\0"
    "sourceModelReset\0sourceRowsAboutToBeInserted\0"
    "sourceRowsInserted\0sourceRowsAboutToBeRemoved\0"
    "parent\0sourceRowsRemoved\0"
    "sourceRowsAboutToBeMoved\0sourceStart\0"
    "sourceEnd\0destStart\0sourceRowsMoved\0"
    "workPackageToBeAdded\0Node*\0workPackageAdded\0"
    "workPackageToBeRemoved\0workPackageRemoved"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__WorkPackageProxyModel[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    1,   89,    2, 0x0a /* Public */,
       5,    1,   92,    2, 0x0a /* Public */,
       8,    2,   95,    2, 0x09 /* Protected */,
      11,    0,  100,    2, 0x09 /* Protected */,
      12,    0,  101,    2, 0x09 /* Protected */,
      13,    3,  102,    2, 0x09 /* Protected */,
      14,    3,  109,    2, 0x09 /* Protected */,
      15,    3,  116,    2, 0x09 /* Protected */,
      17,    3,  123,    2, 0x09 /* Protected */,
      18,    5,  130,    2, 0x09 /* Protected */,
      22,    5,  141,    2, 0x09 /* Protected */,
      23,    2,  152,    2, 0x09 /* Protected */,
      25,    1,  157,    2, 0x09 /* Protected */,
      26,    2,  160,    2, 0x09 /* Protected */,
      27,    1,  165,    2, 0x09 /* Protected */,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 6,    7,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QModelIndex,    9,   10,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,    2,    2,    2,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,    2,    2,   10,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,   16,    9,   10,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,   16,    9,    2,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int, QMetaType::QModelIndex, QMetaType::Int,    2,   19,   20,    2,   21,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int, QMetaType::QModelIndex, QMetaType::Int,    2,    2,    2,    2,    2,
    QMetaType::Void, 0x80000000 | 24, QMetaType::Int,    2,    2,
    QMetaType::Void, 0x80000000 | 24,    2,
    QMetaType::Void, 0x80000000 | 24, QMetaType::Int,    2,    2,
    QMetaType::Void, 0x80000000 | 24,    2,

       0        // eod
};

void KPlato::WorkPackageProxyModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        WorkPackageProxyModel *_t = static_cast<WorkPackageProxyModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->setProject((*reinterpret_cast< Project*(*)>(_a[1]))); break;
        case 1: _t->setScheduleManager((*reinterpret_cast< ScheduleManager*(*)>(_a[1]))); break;
        case 2: _t->sourceDataChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        case 3: _t->sourceModelAboutToBeReset(); break;
        case 4: _t->sourceModelReset(); break;
        case 5: _t->sourceRowsAboutToBeInserted((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 6: _t->sourceRowsInserted((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 7: _t->sourceRowsAboutToBeRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 8: _t->sourceRowsRemoved((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 9: _t->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 10: _t->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 11: _t->workPackageToBeAdded((*reinterpret_cast< Node*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 12: _t->workPackageAdded((*reinterpret_cast< Node*(*)>(_a[1]))); break;
        case 13: _t->workPackageToBeRemoved((*reinterpret_cast< Node*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 14: _t->workPackageRemoved((*reinterpret_cast< Node*(*)>(_a[1]))); break;
        default: ;
        }
    }
}

const QMetaObject KPlato::WorkPackageProxyModel::staticMetaObject = {
    { &QAbstractProxyModel::staticMetaObject, qt_meta_stringdata_KPlato__WorkPackageProxyModel.data,
      qt_meta_data_KPlato__WorkPackageProxyModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KPlato::WorkPackageProxyModel::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 < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 15;
    }
    return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
