/****************************************************************************
** Meta object code from reading C++ file 'kptresourcemodel.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/kptresourcemodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kptresourcemodel.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__ResourceModel_t {
    QByteArrayData data[14];
    char stringdata0[236];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__ResourceModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__ResourceModel_t qt_meta_stringdata_KPlato__ResourceModel = {
    {
QT_MOC_LITERAL(0, 0, 21), // "KPlato::ResourceModel"
QT_MOC_LITERAL(1, 22, 10), // "Properties"
QT_MOC_LITERAL(2, 33, 12), // "ResourceName"
QT_MOC_LITERAL(3, 46, 13), // "ResourceScope"
QT_MOC_LITERAL(4, 60, 12), // "ResourceType"
QT_MOC_LITERAL(5, 73, 16), // "ResourceInitials"
QT_MOC_LITERAL(6, 90, 13), // "ResourceEmail"
QT_MOC_LITERAL(7, 104, 16), // "ResourceCalendar"
QT_MOC_LITERAL(8, 121, 13), // "ResourceLimit"
QT_MOC_LITERAL(9, 135, 21), // "ResourceAvailableFrom"
QT_MOC_LITERAL(10, 157, 22), // "ResourceAvailableUntil"
QT_MOC_LITERAL(11, 180, 18), // "ResourceNormalRate"
QT_MOC_LITERAL(12, 199, 20), // "ResourceOvertimeRate"
QT_MOC_LITERAL(13, 220, 15) // "ResourceAccount"

    },
    "KPlato::ResourceModel\0Properties\0"
    "ResourceName\0ResourceScope\0ResourceType\0"
    "ResourceInitials\0ResourceEmail\0"
    "ResourceCalendar\0ResourceLimit\0"
    "ResourceAvailableFrom\0ResourceAvailableUntil\0"
    "ResourceNormalRate\0ResourceOvertimeRate\0"
    "ResourceAccount"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__ResourceModel[] = {

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

 // enums: name, flags, count, data
       1, 0x0,   12,   18,

 // enum data: key, value
       2, uint(KPlato::ResourceModel::ResourceName),
       3, uint(KPlato::ResourceModel::ResourceScope),
       4, uint(KPlato::ResourceModel::ResourceType),
       5, uint(KPlato::ResourceModel::ResourceInitials),
       6, uint(KPlato::ResourceModel::ResourceEmail),
       7, uint(KPlato::ResourceModel::ResourceCalendar),
       8, uint(KPlato::ResourceModel::ResourceLimit),
       9, uint(KPlato::ResourceModel::ResourceAvailableFrom),
      10, uint(KPlato::ResourceModel::ResourceAvailableUntil),
      11, uint(KPlato::ResourceModel::ResourceNormalRate),
      12, uint(KPlato::ResourceModel::ResourceOvertimeRate),
      13, uint(KPlato::ResourceModel::ResourceAccount),

       0        // eod
};

void KPlato::ResourceModel::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::ResourceModel::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KPlato__ResourceModel.data,
      qt_meta_data_KPlato__ResourceModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KPlato::ResourceModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    return _id;
}
struct qt_meta_stringdata_KPlato__ResourceItemModel_t {
    QByteArrayData data[29];
    char stringdata0[462];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__ResourceItemModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__ResourceItemModel_t qt_meta_stringdata_KPlato__ResourceItemModel = {
    {
QT_MOC_LITERAL(0, 0, 25), // "KPlato::ResourceItemModel"
QT_MOC_LITERAL(1, 26, 19), // "slotResourceChanged"
QT_MOC_LITERAL(2, 46, 0), // ""
QT_MOC_LITERAL(3, 47, 9), // "Resource*"
QT_MOC_LITERAL(4, 57, 24), // "slotResourceGroupChanged"
QT_MOC_LITERAL(5, 82, 14), // "ResourceGroup*"
QT_MOC_LITERAL(6, 97, 29), // "slotResourceGroupToBeInserted"
QT_MOC_LITERAL(7, 127, 20), // "const ResourceGroup*"
QT_MOC_LITERAL(8, 148, 5), // "group"
QT_MOC_LITERAL(9, 154, 3), // "row"
QT_MOC_LITERAL(10, 158, 25), // "slotResourceGroupInserted"
QT_MOC_LITERAL(11, 184, 28), // "slotResourceGroupToBeRemoved"
QT_MOC_LITERAL(12, 213, 24), // "slotResourceGroupRemoved"
QT_MOC_LITERAL(13, 238, 24), // "slotResourceToBeInserted"
QT_MOC_LITERAL(14, 263, 20), // "slotResourceInserted"
QT_MOC_LITERAL(15, 284, 15), // "const Resource*"
QT_MOC_LITERAL(16, 300, 8), // "resource"
QT_MOC_LITERAL(17, 309, 23), // "slotResourceToBeRemoved"
QT_MOC_LITERAL(18, 333, 19), // "slotResourceRemoved"
QT_MOC_LITERAL(19, 353, 19), // "slotCalendarChanged"
QT_MOC_LITERAL(20, 373, 9), // "Calendar*"
QT_MOC_LITERAL(21, 383, 3), // "cal"
QT_MOC_LITERAL(22, 387, 17), // "slotLayoutChanged"
QT_MOC_LITERAL(23, 405, 15), // "slotDataArrived"
QT_MOC_LITERAL(24, 421, 9), // "KIO::Job*"
QT_MOC_LITERAL(25, 431, 3), // "job"
QT_MOC_LITERAL(26, 435, 4), // "data"
QT_MOC_LITERAL(27, 440, 15), // "slotJobFinished"
QT_MOC_LITERAL(28, 456, 5) // "KJob*"

    },
    "KPlato::ResourceItemModel\0slotResourceChanged\0"
    "\0Resource*\0slotResourceGroupChanged\0"
    "ResourceGroup*\0slotResourceGroupToBeInserted\0"
    "const ResourceGroup*\0group\0row\0"
    "slotResourceGroupInserted\0"
    "slotResourceGroupToBeRemoved\0"
    "slotResourceGroupRemoved\0"
    "slotResourceToBeInserted\0slotResourceInserted\0"
    "const Resource*\0resource\0"
    "slotResourceToBeRemoved\0slotResourceRemoved\0"
    "slotCalendarChanged\0Calendar*\0cal\0"
    "slotLayoutChanged\0slotDataArrived\0"
    "KIO::Job*\0job\0data\0slotJobFinished\0"
    "KJob*"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__ResourceItemModel[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    1,   84,    2, 0x09 /* Protected */,
       4,    1,   87,    2, 0x09 /* Protected */,
       6,    2,   90,    2, 0x09 /* Protected */,
      10,    1,   95,    2, 0x09 /* Protected */,
      11,    1,   98,    2, 0x09 /* Protected */,
      12,    1,  101,    2, 0x09 /* Protected */,
      13,    2,  104,    2, 0x09 /* Protected */,
      14,    1,  109,    2, 0x09 /* Protected */,
      17,    1,  112,    2, 0x09 /* Protected */,
      18,    1,  115,    2, 0x09 /* Protected */,
      19,    1,  118,    2, 0x09 /* Protected */,
      22,    0,  121,    2, 0x09 /* Protected */,
      23,    2,  122,    2, 0x09 /* Protected */,
      27,    1,  127,    2, 0x09 /* Protected */,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3,    2,
    QMetaType::Void, 0x80000000 | 5,    2,
    QMetaType::Void, 0x80000000 | 7, QMetaType::Int,    8,    9,
    QMetaType::Void, 0x80000000 | 7,    8,
    QMetaType::Void, 0x80000000 | 7,    8,
    QMetaType::Void, 0x80000000 | 7,    8,
    QMetaType::Void, 0x80000000 | 7, QMetaType::Int,    8,    9,
    QMetaType::Void, 0x80000000 | 15,   16,
    QMetaType::Void, 0x80000000 | 15,   16,
    QMetaType::Void, 0x80000000 | 15,   16,
    QMetaType::Void, 0x80000000 | 20,   21,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 24, QMetaType::QByteArray,   25,   26,
    QMetaType::Void, 0x80000000 | 28,   25,

       0        // eod
};

void KPlato::ResourceItemModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        ResourceItemModel *_t = static_cast<ResourceItemModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->slotResourceChanged((*reinterpret_cast< Resource*(*)>(_a[1]))); break;
        case 1: _t->slotResourceGroupChanged((*reinterpret_cast< ResourceGroup*(*)>(_a[1]))); break;
        case 2: _t->slotResourceGroupToBeInserted((*reinterpret_cast< const ResourceGroup*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 3: _t->slotResourceGroupInserted((*reinterpret_cast< const ResourceGroup*(*)>(_a[1]))); break;
        case 4: _t->slotResourceGroupToBeRemoved((*reinterpret_cast< const ResourceGroup*(*)>(_a[1]))); break;
        case 5: _t->slotResourceGroupRemoved((*reinterpret_cast< const ResourceGroup*(*)>(_a[1]))); break;
        case 6: _t->slotResourceToBeInserted((*reinterpret_cast< const ResourceGroup*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 7: _t->slotResourceInserted((*reinterpret_cast< const Resource*(*)>(_a[1]))); break;
        case 8: _t->slotResourceToBeRemoved((*reinterpret_cast< const Resource*(*)>(_a[1]))); break;
        case 9: _t->slotResourceRemoved((*reinterpret_cast< const Resource*(*)>(_a[1]))); break;
        case 10: _t->slotCalendarChanged((*reinterpret_cast< Calendar*(*)>(_a[1]))); break;
        case 11: _t->slotLayoutChanged(); break;
        case 12: _t->slotDataArrived((*reinterpret_cast< KIO::Job*(*)>(_a[1])),(*reinterpret_cast< const QByteArray(*)>(_a[2]))); break;
        case 13: _t->slotJobFinished((*reinterpret_cast< KJob*(*)>(_a[1]))); break;
        default: ;
        }
    }
}

const QMetaObject KPlato::ResourceItemModel::staticMetaObject = {
    { &ItemModelBase::staticMetaObject, qt_meta_stringdata_KPlato__ResourceItemModel.data,
      qt_meta_data_KPlato__ResourceItemModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KPlato::ResourceItemModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = ItemModelBase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 14;
    }
    return _id;
}
struct qt_meta_stringdata_KPlato__ResourceItemSFModel_t {
    QByteArrayData data[1];
    char stringdata0[28];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__ResourceItemSFModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__ResourceItemSFModel_t qt_meta_stringdata_KPlato__ResourceItemSFModel = {
    {
QT_MOC_LITERAL(0, 0, 27) // "KPlato::ResourceItemSFModel"

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

static const uint qt_meta_data_KPlato__ResourceItemSFModel[] = {

 // 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::ResourceItemSFModel::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::ResourceItemSFModel::staticMetaObject = {
    { &QSortFilterProxyModel::staticMetaObject, qt_meta_stringdata_KPlato__ResourceItemSFModel.data,
      qt_meta_data_KPlato__ResourceItemSFModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KPlato::ResourceItemSFModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QSortFilterProxyModel::qt_metacall(_c, _id, _a);
    return _id;
}
struct qt_meta_stringdata_KPlato__AllocatedResourceItemModel_t {
    QByteArrayData data[13];
    char stringdata0[140];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__AllocatedResourceItemModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__AllocatedResourceItemModel_t qt_meta_stringdata_KPlato__AllocatedResourceItemModel = {
    {
QT_MOC_LITERAL(0, 0, 34), // "KPlato::AllocatedResourceItem..."
QT_MOC_LITERAL(1, 35, 9), // "expandAll"
QT_MOC_LITERAL(2, 45, 0), // ""
QT_MOC_LITERAL(3, 46, 22), // "resizeColumnToContents"
QT_MOC_LITERAL(4, 69, 10), // "setProject"
QT_MOC_LITERAL(5, 80, 8), // "Project*"
QT_MOC_LITERAL(6, 89, 7), // "project"
QT_MOC_LITERAL(7, 97, 7), // "setTask"
QT_MOC_LITERAL(8, 105, 5), // "Task*"
QT_MOC_LITERAL(9, 111, 4), // "task"
QT_MOC_LITERAL(10, 116, 15), // "slotNodeChanged"
QT_MOC_LITERAL(11, 132, 5), // "Node*"
QT_MOC_LITERAL(12, 138, 1) // "n"

    },
    "KPlato::AllocatedResourceItemModel\0"
    "expandAll\0\0resizeColumnToContents\0"
    "setProject\0Project*\0project\0setTask\0"
    "Task*\0task\0slotNodeChanged\0Node*\0n"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__AllocatedResourceItemModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   39,    2, 0x06 /* Public */,
       3,    1,   40,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    1,   43,    2, 0x0a /* Public */,
       7,    1,   46,    2, 0x0a /* Public */,
      10,    1,   49,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    2,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 5,    6,
    QMetaType::Void, 0x80000000 | 8,    9,
    QMetaType::Void, 0x80000000 | 11,   12,

       0        // eod
};

void KPlato::AllocatedResourceItemModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        AllocatedResourceItemModel *_t = static_cast<AllocatedResourceItemModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->expandAll(); break;
        case 1: _t->resizeColumnToContents((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: _t->setProject((*reinterpret_cast< Project*(*)>(_a[1]))); break;
        case 3: _t->setTask((*reinterpret_cast< Task*(*)>(_a[1]))); break;
        case 4: _t->slotNodeChanged((*reinterpret_cast< Node*(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (AllocatedResourceItemModel::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AllocatedResourceItemModel::expandAll)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (AllocatedResourceItemModel::*_t)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AllocatedResourceItemModel::resizeColumnToContents)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject KPlato::AllocatedResourceItemModel::staticMetaObject = {
    { &QSortFilterProxyModel::staticMetaObject, qt_meta_stringdata_KPlato__AllocatedResourceItemModel.data,
      qt_meta_data_KPlato__AllocatedResourceItemModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void KPlato::AllocatedResourceItemModel::expandAll()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void KPlato::AllocatedResourceItemModel::resizeColumnToContents(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
