/****************************************************************************
** Meta object code from reading C++ file 'kptrelationeditor.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/kptrelationeditor.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kptrelationeditor.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__RelationTreeView_t {
    QByteArrayData data[5];
    char stringdata0[71];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__RelationTreeView_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__RelationTreeView_t qt_meta_stringdata_KPlato__RelationTreeView = {
    {
QT_MOC_LITERAL(0, 0, 24), // "KPlato::RelationTreeView"
QT_MOC_LITERAL(1, 25, 20), // "currentColumnChanged"
QT_MOC_LITERAL(2, 46, 0), // ""
QT_MOC_LITERAL(3, 47, 18), // "slotCurrentChanged"
QT_MOC_LITERAL(4, 66, 4) // "curr"

    },
    "KPlato::RelationTreeView\0currentColumnChanged\0"
    "\0slotCurrentChanged\0curr"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__RelationTreeView[] = {

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

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

 // slots: name, argc, parameters, tag, flags
       3,    2,   29,    2, 0x09 /* Protected */,

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

 // slots: parameters
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QModelIndex,    4,    2,

       0        // eod
};

void KPlato::RelationTreeView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        RelationTreeView *_t = static_cast<RelationTreeView *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->currentColumnChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        case 1: _t->slotCurrentChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (RelationTreeView::*_t)(const QModelIndex & , const QModelIndex & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RelationTreeView::currentColumnChanged)) {
                *result = 0;
                return;
            }
        }
    }
}

const QMetaObject KPlato::RelationTreeView::staticMetaObject = {
    { &DoubleTreeViewBase::staticMetaObject, qt_meta_stringdata_KPlato__RelationTreeView.data,
      qt_meta_data_KPlato__RelationTreeView,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KPlato::RelationTreeView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = DoubleTreeViewBase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 2)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 2)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 2;
    }
    return _id;
}

// SIGNAL 0
void KPlato::RelationTreeView::currentColumnChanged(const QModelIndex & _t1, const QModelIndex & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
struct qt_meta_stringdata_KPlato__RelationEditor_t {
    QByteArrayData data[21];
    char stringdata0[295];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KPlato__RelationEditor_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KPlato__RelationEditor_t qt_meta_stringdata_KPlato__RelationEditor = {
    {
QT_MOC_LITERAL(0, 0, 22), // "KPlato::RelationEditor"
QT_MOC_LITERAL(1, 23, 8), // "openNode"
QT_MOC_LITERAL(2, 32, 0), // ""
QT_MOC_LITERAL(3, 33, 11), // "addRelation"
QT_MOC_LITERAL(4, 45, 14), // "deleteRelation"
QT_MOC_LITERAL(5, 60, 9), // "Relation*"
QT_MOC_LITERAL(6, 70, 12), // "setGuiActive"
QT_MOC_LITERAL(7, 83, 8), // "activate"
QT_MOC_LITERAL(8, 92, 11), // "slotOptions"
QT_MOC_LITERAL(9, 104, 20), // "slotSelectionChanged"
QT_MOC_LITERAL(10, 125, 15), // "QModelIndexList"
QT_MOC_LITERAL(11, 141, 18), // "slotCurrentChanged"
QT_MOC_LITERAL(12, 160, 24), // "slotContextMenuRequested"
QT_MOC_LITERAL(13, 185, 5), // "index"
QT_MOC_LITERAL(14, 191, 3), // "pos"
QT_MOC_LITERAL(15, 195, 17), // "slotEnableActions"
QT_MOC_LITERAL(16, 213, 15), // "slotAddRelation"
QT_MOC_LITERAL(17, 229, 18), // "slotDeleteRelation"
QT_MOC_LITERAL(18, 248, 1), // "r"
QT_MOC_LITERAL(19, 250, 13), // "slotSplitView"
QT_MOC_LITERAL(20, 264, 30) // "slotHeaderContextMenuRequested"

    },
    "KPlato::RelationEditor\0openNode\0\0"
    "addRelation\0deleteRelation\0Relation*\0"
    "setGuiActive\0activate\0slotOptions\0"
    "slotSelectionChanged\0QModelIndexList\0"
    "slotCurrentChanged\0slotContextMenuRequested\0"
    "index\0pos\0slotEnableActions\0slotAddRelation\0"
    "slotDeleteRelation\0r\0slotSplitView\0"
    "slotHeaderContextMenuRequested"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KPlato__RelationEditor[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   79,    2, 0x06 /* Public */,
       3,    0,   80,    2, 0x06 /* Public */,
       4,    1,   81,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    1,   84,    2, 0x0a /* Public */,
       8,    0,   87,    2, 0x09 /* Protected */,
       9,    1,   88,    2, 0x08 /* Private */,
      11,    2,   91,    2, 0x08 /* Private */,
      12,    2,   96,    2, 0x08 /* Private */,
      15,    0,  101,    2, 0x08 /* Private */,
      16,    0,  102,    2, 0x08 /* Private */,
      17,    1,  103,    2, 0x08 /* Private */,
      19,    0,  106,    2, 0x08 /* Private */,
      20,    1,  107,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void, QMetaType::Bool,    7,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 10,    2,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QModelIndex,    2,    2,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QPoint,   13,   14,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 5,   18,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QPoint,    2,

       0        // eod
};

void KPlato::RelationEditor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        RelationEditor *_t = static_cast<RelationEditor *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->openNode(); break;
        case 1: _t->addRelation(); break;
        case 2: _t->deleteRelation((*reinterpret_cast< Relation*(*)>(_a[1]))); break;
        case 3: _t->setGuiActive((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 4: _t->slotOptions(); break;
        case 5: _t->slotSelectionChanged((*reinterpret_cast< const QModelIndexList(*)>(_a[1]))); break;
        case 6: _t->slotCurrentChanged((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        case 7: _t->slotContextMenuRequested((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 8: _t->slotEnableActions(); break;
        case 9: _t->slotAddRelation(); break;
        case 10: _t->slotDeleteRelation((*reinterpret_cast< Relation*(*)>(_a[1]))); break;
        case 11: _t->slotSplitView(); break;
        case 12: _t->slotHeaderContextMenuRequested((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QModelIndexList >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (RelationEditor::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RelationEditor::openNode)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (RelationEditor::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RelationEditor::addRelation)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (RelationEditor::*_t)(Relation * );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&RelationEditor::deleteRelation)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject KPlato::RelationEditor::staticMetaObject = {
    { &ViewBase::staticMetaObject, qt_meta_stringdata_KPlato__RelationEditor.data,
      qt_meta_data_KPlato__RelationEditor,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KPlato::RelationEditor::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 < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    return _id;
}

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

// SIGNAL 1
void KPlato::RelationEditor::addRelation()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void KPlato::RelationEditor::deleteRelation(Relation * _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
