/****************************************************************************
** Meta object code from reading C++ file 'kptrelationmodel.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/kptrelationmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kptrelationmodel.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__RelationModel_t {
    QByteArrayData data[1];
    char stringdata0[22];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__RelationModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__RelationModel_t qt_meta_stringdata_KPlato__RelationModel = {
    {
QT_MOC_LITERAL(0, 0, 21) // "KPlato::RelationModel"

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

static const uint qt_meta_data_KPlato__RelationModel[] = {

 // 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::RelationModel::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::RelationModel::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_KPlato__RelationModel.data,
      qt_meta_data_KPlato__RelationModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KPlato::RelationModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    return _id;
}
struct qt_meta_stringdata_KPlato__RelationItemModel_t {
    QByteArrayData data[17];
    char stringdata0[255];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__RelationItemModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__RelationItemModel_t qt_meta_stringdata_KPlato__RelationItemModel = {
    {
QT_MOC_LITERAL(0, 0, 25), // "KPlato::RelationItemModel"
QT_MOC_LITERAL(1, 26, 14), // "executeCommand"
QT_MOC_LITERAL(2, 41, 0), // ""
QT_MOC_LITERAL(3, 42, 14), // "KUndo2Command*"
QT_MOC_LITERAL(4, 57, 15), // "slotNodeChanged"
QT_MOC_LITERAL(5, 73, 5), // "Node*"
QT_MOC_LITERAL(6, 79, 19), // "slotNodeToBeRemoved"
QT_MOC_LITERAL(7, 99, 4), // "node"
QT_MOC_LITERAL(8, 104, 15), // "slotNodeRemoved"
QT_MOC_LITERAL(9, 120, 23), // "slotRelationToBeRemoved"
QT_MOC_LITERAL(10, 144, 9), // "Relation*"
QT_MOC_LITERAL(11, 154, 1), // "r"
QT_MOC_LITERAL(12, 156, 19), // "slotRelationRemoved"
QT_MOC_LITERAL(13, 176, 21), // "slotRelationToBeAdded"
QT_MOC_LITERAL(14, 198, 17), // "slotRelationAdded"
QT_MOC_LITERAL(15, 216, 20), // "slotRelationModified"
QT_MOC_LITERAL(16, 237, 17) // "slotLayoutChanged"

    },
    "KPlato::RelationItemModel\0executeCommand\0"
    "\0KUndo2Command*\0slotNodeChanged\0Node*\0"
    "slotNodeToBeRemoved\0node\0slotNodeRemoved\0"
    "slotRelationToBeRemoved\0Relation*\0r\0"
    "slotRelationRemoved\0slotRelationToBeAdded\0"
    "slotRelationAdded\0slotRelationModified\0"
    "slotLayoutChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__RelationItemModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   64,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    1,   67,    2, 0x09 /* Protected */,
       6,    1,   70,    2, 0x09 /* Protected */,
       8,    1,   73,    2, 0x09 /* Protected */,
       9,    1,   76,    2, 0x09 /* Protected */,
      12,    1,   79,    2, 0x09 /* Protected */,
      13,    3,   82,    2, 0x09 /* Protected */,
      14,    1,   89,    2, 0x09 /* Protected */,
      15,    1,   92,    2, 0x09 /* Protected */,
      16,    0,   95,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    2,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 5,    2,
    QMetaType::Void, 0x80000000 | 5,    7,
    QMetaType::Void, 0x80000000 | 5,    7,
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void, 0x80000000 | 10, QMetaType::Int, QMetaType::Int,   11,    2,    2,
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void,

       0        // eod
};

void KPlato::RelationItemModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        RelationItemModel *_t = static_cast<RelationItemModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->executeCommand((*reinterpret_cast< KUndo2Command*(*)>(_a[1]))); break;
        case 1: _t->slotNodeChanged((*reinterpret_cast< Node*(*)>(_a[1]))); break;
        case 2: _t->slotNodeToBeRemoved((*reinterpret_cast< Node*(*)>(_a[1]))); break;
        case 3: _t->slotNodeRemoved((*reinterpret_cast< Node*(*)>(_a[1]))); break;
        case 4: _t->slotRelationToBeRemoved((*reinterpret_cast< Relation*(*)>(_a[1]))); break;
        case 5: _t->slotRelationRemoved((*reinterpret_cast< Relation*(*)>(_a[1]))); break;
        case 6: _t->slotRelationToBeAdded((*reinterpret_cast< Relation*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 7: _t->slotRelationAdded((*reinterpret_cast< Relation*(*)>(_a[1]))); break;
        case 8: _t->slotRelationModified((*reinterpret_cast< Relation*(*)>(_a[1]))); break;
        case 9: _t->slotLayoutChanged(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (RelationItemModel::*_t)(KUndo2Command * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RelationItemModel::executeCommand)) {
                *result = 0;
                return;
            }
        }
    }
}

const QMetaObject KPlato::RelationItemModel::staticMetaObject = {
    { &ItemModelBase::staticMetaObject, qt_meta_stringdata_KPlato__RelationItemModel.data,
      qt_meta_data_KPlato__RelationItemModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void KPlato::RelationItemModel::executeCommand(KUndo2Command * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
