/****************************************************************************
** Meta object code from reading C++ file 'kptperteditor.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/ui/kptperteditor.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kptperteditor.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__PertEditor_t {
    QByteArrayData data[30];
    char stringdata0[414];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__PertEditor_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__PertEditor_t qt_meta_stringdata_KPlato__PertEditor = {
    {
QT_MOC_LITERAL(0, 0, 18), // "KPlato::PertEditor"
QT_MOC_LITERAL(1, 19, 14), // "executeCommand"
QT_MOC_LITERAL(2, 34, 0), // ""
QT_MOC_LITERAL(3, 35, 14), // "KUndo2Command*"
QT_MOC_LITERAL(4, 50, 13), // "slotNodeAdded"
QT_MOC_LITERAL(5, 64, 5), // "Node*"
QT_MOC_LITERAL(6, 70, 15), // "slotNodeRemoved"
QT_MOC_LITERAL(7, 86, 13), // "slotNodeMoved"
QT_MOC_LITERAL(8, 100, 15), // "slotNodeChanged"
QT_MOC_LITERAL(9, 116, 17), // "slotRelationAdded"
QT_MOC_LITERAL(10, 134, 9), // "Relation*"
QT_MOC_LITERAL(11, 144, 3), // "rel"
QT_MOC_LITERAL(12, 148, 19), // "slotRelationRemoved"
QT_MOC_LITERAL(13, 168, 18), // "dispAvailableTasks"
QT_MOC_LITERAL(14, 187, 6), // "parent"
QT_MOC_LITERAL(15, 194, 12), // "selectedTask"
QT_MOC_LITERAL(16, 207, 21), // "addTaskInRequiredList"
QT_MOC_LITERAL(17, 229, 16), // "QTreeWidgetItem*"
QT_MOC_LITERAL(18, 246, 11), // "currentItem"
QT_MOC_LITERAL(19, 258, 26), // "removeTaskFromRequiredList"
QT_MOC_LITERAL(20, 285, 10), // "slotUpdate"
QT_MOC_LITERAL(21, 296, 22), // "slotCurrentTaskChanged"
QT_MOC_LITERAL(22, 319, 4), // "curr"
QT_MOC_LITERAL(23, 324, 4), // "prev"
QT_MOC_LITERAL(24, 329, 20), // "slotAvailableChanged"
QT_MOC_LITERAL(25, 350, 4), // "item"
QT_MOC_LITERAL(26, 355, 19), // "slotRequiredChanged"
QT_MOC_LITERAL(27, 375, 5), // "index"
QT_MOC_LITERAL(28, 381, 14), // "slotAddClicked"
QT_MOC_LITERAL(29, 396, 17) // "slotRemoveClicked"

    },
    "KPlato::PertEditor\0executeCommand\0\0"
    "KUndo2Command*\0slotNodeAdded\0Node*\0"
    "slotNodeRemoved\0slotNodeMoved\0"
    "slotNodeChanged\0slotRelationAdded\0"
    "Relation*\0rel\0slotRelationRemoved\0"
    "dispAvailableTasks\0parent\0selectedTask\0"
    "addTaskInRequiredList\0QTreeWidgetItem*\0"
    "currentItem\0removeTaskFromRequiredList\0"
    "slotUpdate\0slotCurrentTaskChanged\0"
    "curr\0prev\0slotAvailableChanged\0item\0"
    "slotRequiredChanged\0index\0slotAddClicked\0"
    "slotRemoveClicked"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__PertEditor[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       4,    1,  107,    2, 0x08 /* Private */,
       6,    1,  110,    2, 0x08 /* Private */,
       7,    1,  113,    2, 0x08 /* Private */,
       8,    1,  116,    2, 0x08 /* Private */,
       9,    1,  119,    2, 0x08 /* Private */,
      12,    1,  122,    2, 0x08 /* Private */,
      13,    0,  125,    2, 0x08 /* Private */,
      13,    2,  126,    2, 0x08 /* Private */,
      13,    1,  131,    2, 0x08 /* Private */,
      16,    1,  134,    2, 0x08 /* Private */,
      19,    0,  137,    2, 0x08 /* Private */,
      20,    0,  138,    2, 0x08 /* Private */,
      21,    2,  139,    2, 0x08 /* Private */,
      24,    1,  144,    2, 0x08 /* Private */,
      26,    1,  147,    2, 0x08 /* Private */,
      28,    0,  150,    2, 0x08 /* Private */,
      29,    0,  151,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void, 0x80000000 | 5,    2,
    QMetaType::Void, 0x80000000 | 5,    2,
    QMetaType::Void, 0x80000000 | 5,    2,
    QMetaType::Void, 0x80000000 | 5,    2,
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 5, 0x80000000 | 5,   14,   15,
    QMetaType::Void, 0x80000000 | 10,   11,
    QMetaType::Void, 0x80000000 | 17,   18,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 17, 0x80000000 | 17,   22,   23,
    QMetaType::Void, 0x80000000 | 17,   25,
    QMetaType::Void, QMetaType::QModelIndex,   27,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void KPlato::PertEditor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PertEditor *_t = static_cast<PertEditor *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->executeCommand((*reinterpret_cast< KUndo2Command*(*)>(_a[1]))); break;
        case 1: _t->slotNodeAdded((*reinterpret_cast< Node*(*)>(_a[1]))); break;
        case 2: _t->slotNodeRemoved((*reinterpret_cast< Node*(*)>(_a[1]))); break;
        case 3: _t->slotNodeMoved((*reinterpret_cast< Node*(*)>(_a[1]))); break;
        case 4: _t->slotNodeChanged((*reinterpret_cast< Node*(*)>(_a[1]))); break;
        case 5: _t->slotRelationAdded((*reinterpret_cast< Relation*(*)>(_a[1]))); break;
        case 6: _t->slotRelationRemoved((*reinterpret_cast< Relation*(*)>(_a[1]))); break;
        case 7: _t->dispAvailableTasks(); break;
        case 8: _t->dispAvailableTasks((*reinterpret_cast< Node*(*)>(_a[1])),(*reinterpret_cast< Node*(*)>(_a[2]))); break;
        case 9: _t->dispAvailableTasks((*reinterpret_cast< Relation*(*)>(_a[1]))); break;
        case 10: _t->addTaskInRequiredList((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1]))); break;
        case 11: _t->removeTaskFromRequiredList(); break;
        case 12: _t->slotUpdate(); break;
        case 13: _t->slotCurrentTaskChanged((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1])),(*reinterpret_cast< QTreeWidgetItem*(*)>(_a[2]))); break;
        case 14: _t->slotAvailableChanged((*reinterpret_cast< QTreeWidgetItem*(*)>(_a[1]))); break;
        case 15: _t->slotRequiredChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 16: _t->slotAddClicked(); break;
        case 17: _t->slotRemoveClicked(); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Node* >(); break;
            }
            break;
        case 2:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Node* >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Node* >(); break;
            }
            break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Node* >(); break;
            }
            break;
        case 8:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 1:
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Node* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (PertEditor::*_t)(KUndo2Command * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PertEditor::executeCommand)) {
                *result = 0;
                return;
            }
        }
    }
}

const QMetaObject KPlato::PertEditor::staticMetaObject = {
    { &ViewBase::staticMetaObject, qt_meta_stringdata_KPlato__PertEditor.data,
      qt_meta_data_KPlato__PertEditor,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KPlato::PertEditor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = ViewBase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 18)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 18)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 18;
    }
    return _id;
}

// SIGNAL 0
void KPlato::PertEditor::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
