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

#include "../../src/analitza-17.08.3/declarative/graph3ditem.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#include <QtCore/QSharedPointer>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'graph3ditem.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.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
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Graph3DItem_t {
    QByteArrayData data[18];
    char stringdata0[166];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Graph3DItem_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Graph3DItem_t qt_meta_stringdata_Graph3DItem = {
    {
QT_MOC_LITERAL(0, 0, 11), // "Graph3DItem"
QT_MOC_LITERAL(1, 12, 12), // "modelChanged"
QT_MOC_LITERAL(2, 25, 0), // ""
QT_MOC_LITERAL(3, 26, 19), // "QAbstractItemModel*"
QT_MOC_LITERAL(4, 46, 5), // "model"
QT_MOC_LITERAL(5, 52, 11), // "addFunction"
QT_MOC_LITERAL(6, 64, 10), // "expression"
QT_MOC_LITERAL(7, 75, 35), // "QSharedPointer<Analitza::Vari..."
QT_MOC_LITERAL(8, 111, 4), // "vars"
QT_MOC_LITERAL(9, 116, 6), // "rotate"
QT_MOC_LITERAL(10, 123, 1), // "x"
QT_MOC_LITERAL(11, 125, 1), // "y"
QT_MOC_LITERAL(12, 127, 5), // "scale"
QT_MOC_LITERAL(13, 133, 1), // "s"
QT_MOC_LITERAL(14, 135, 13), // "resetViewport"
QT_MOC_LITERAL(15, 149, 4), // "save"
QT_MOC_LITERAL(16, 154, 3), // "url"
QT_MOC_LITERAL(17, 158, 7) // "filters"

    },
    "Graph3DItem\0modelChanged\0\0QAbstractItemModel*\0"
    "model\0addFunction\0expression\0"
    "QSharedPointer<Analitza::Variables>\0"
    "vars\0rotate\0x\0y\0scale\0s\0resetViewport\0"
    "save\0url\0filters"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Graph3DItem[] = {

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

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

 // methods: name, argc, parameters, tag, flags
       5,    2,   52,    2, 0x42 /* Public | isScriptable */,
       5,    1,   57,    2, 0x62 /* Public | MethodCloned | isScriptable */,
       9,    2,   60,    2, 0x42 /* Public | isScriptable */,
      12,    1,   65,    2, 0x42 /* Public | isScriptable */,
      14,    0,   68,    2, 0x42 /* Public | isScriptable */,
      15,    1,   69,    2, 0x42 /* Public | isScriptable */,

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

 // methods: parameters
    QMetaType::QStringList, QMetaType::QString, 0x80000000 | 7,    6,    8,
    QMetaType::QStringList, QMetaType::QString,    6,
    QMetaType::Void, QMetaType::QReal, QMetaType::QReal,   10,   11,
    QMetaType::Void, QMetaType::QReal,   13,
    QMetaType::Void,
    QMetaType::Bool, QMetaType::QUrl,   16,

 // properties: name, type, flags
      17, QMetaType::QStringList, 0x00095401,
       4, 0x80000000 | 3, 0x0049510b,

 // properties: notify_signal_id
       0,
       0,

       0        // eod
};

void Graph3DItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Graph3DItem *_t = static_cast<Graph3DItem *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->modelChanged((*reinterpret_cast< QAbstractItemModel*(*)>(_a[1]))); break;
        case 1: { QStringList _r = _t->addFunction((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QSharedPointer<Analitza::Variables>(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 2: { QStringList _r = _t->addFunction((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = std::move(_r); }  break;
        case 3: _t->rotate((*reinterpret_cast< qreal(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2]))); break;
        case 4: _t->scale((*reinterpret_cast< qreal(*)>(_a[1]))); break;
        case 5: _t->resetViewport(); break;
        case 6: { bool _r = _t->save((*reinterpret_cast< const QUrl(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAbstractItemModel* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (Graph3DItem::*_t)(QAbstractItemModel * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Graph3DItem::modelChanged)) {
                *result = 0;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 1:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAbstractItemModel* >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        Graph3DItem *_t = static_cast<Graph3DItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QStringList*>(_v) = _t->filters(); break;
        case 1: *reinterpret_cast< QAbstractItemModel**>(_v) = _t->model(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        Graph3DItem *_t = static_cast<Graph3DItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setModel(*reinterpret_cast< QAbstractItemModel**>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject Graph3DItem::staticMetaObject = {
    { &QQuickFramebufferObject::staticMetaObject, qt_meta_stringdata_Graph3DItem.data,
      qt_meta_data_Graph3DItem,  qt_static_metacall, nullptr, nullptr}
};


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

void *Graph3DItem::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_Graph3DItem.stringdata0))
        return static_cast<void*>(this);
    return QQuickFramebufferObject::qt_metacast(_clname);
}

int Graph3DItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuickFramebufferObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
#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 -= 2;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 2;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 2;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void Graph3DItem::modelChanged(QAbstractItemModel * _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
