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

#include "../../src/rocs-17.04.3/libgraphtheory/qtquickitems/nodeitem.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'nodeitem.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. 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
struct qt_meta_stringdata_GraphTheory__NodeItem_t {
    QByteArrayData data[12];
    char stringdata0[171];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_GraphTheory__NodeItem_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_GraphTheory__NodeItem_t qt_meta_stringdata_GraphTheory__NodeItem = {
    {
QT_MOC_LITERAL(0, 0, 21), // "GraphTheory::NodeItem"
QT_MOC_LITERAL(1, 22, 11), // "nodeChanged"
QT_MOC_LITERAL(2, 34, 0), // ""
QT_MOC_LITERAL(3, 35, 18), // "highlightedChanged"
QT_MOC_LITERAL(4, 54, 23), // "updatePositionfromScene"
QT_MOC_LITERAL(5, 78, 17), // "setGlobalPosition"
QT_MOC_LITERAL(6, 96, 14), // "globalPosition"
QT_MOC_LITERAL(7, 111, 16), // "updateVisibility"
QT_MOC_LITERAL(8, 128, 4), // "node"
QT_MOC_LITERAL(9, 133, 18), // "GraphTheory::Node*"
QT_MOC_LITERAL(10, 152, 6), // "origin"
QT_MOC_LITERAL(11, 159, 11) // "highlighted"

    },
    "GraphTheory::NodeItem\0nodeChanged\0\0"
    "highlightedChanged\0updatePositionfromScene\0"
    "setGlobalPosition\0globalPosition\0"
    "updateVisibility\0node\0GraphTheory::Node*\0"
    "origin\0highlighted"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_GraphTheory__NodeItem[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       5,   14, // methods
       3,   46, // 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,    0,   40,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    0,   41,    2, 0x08 /* Private */,
       5,    1,   42,    2, 0x08 /* Private */,
       7,    0,   45,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QPointF,    6,
    QMetaType::Void,

 // properties: name, type, flags
       8, 0x80000000 | 9, 0x0049510b,
      10, QMetaType::QPointF, 0x00095103,
      11, QMetaType::Bool, 0x00495103,

 // properties: notify_signal_id
       0,
       0,
       1,

       0        // eod
};

void GraphTheory::NodeItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        NodeItem *_t = static_cast<NodeItem *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->nodeChanged(); break;
        case 1: _t->highlightedChanged(); break;
        case 2: _t->updatePositionfromScene(); break;
        case 3: _t->setGlobalPosition((*reinterpret_cast< const QPointF(*)>(_a[1]))); break;
        case 4: _t->updateVisibility(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (NodeItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&NodeItem::nodeChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (NodeItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&NodeItem::highlightedChanged)) {
                *result = 1;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< GraphTheory::Node* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        NodeItem *_t = static_cast<NodeItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< GraphTheory::Node**>(_v) = _t->node(); break;
        case 1: *reinterpret_cast< QPointF*>(_v) = _t->origin(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->isHighlighted(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        NodeItem *_t = static_cast<NodeItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setNode(*reinterpret_cast< GraphTheory::Node**>(_v)); break;
        case 1: _t->setOrigin(*reinterpret_cast< QPointF*>(_v)); break;
        case 2: _t->setHighlighted(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject GraphTheory::NodeItem::staticMetaObject = {
    { &QQuickPaintedItem::staticMetaObject, qt_meta_stringdata_GraphTheory__NodeItem.data,
      qt_meta_data_GraphTheory__NodeItem,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *GraphTheory::NodeItem::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_GraphTheory__NodeItem.stringdata0))
        return static_cast<void*>(const_cast< NodeItem*>(this));
    return QQuickPaintedItem::qt_metacast(_clname);
}

int GraphTheory::NodeItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuickPaintedItem::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;
    }
#ifndef QT_NO_PROPERTIES
   else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 3;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 3;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void GraphTheory::NodeItem::nodeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

// SIGNAL 1
void GraphTheory::NodeItem::highlightedChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
