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

#include "../../src/analitza-15.04.3/declarative/graph2dmobile.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'graph2dmobile.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.4.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_Graph2DMobile_t {
    QByteArrayData data[25];
    char stringdata[237];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Graph2DMobile_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Graph2DMobile_t qt_meta_stringdata_Graph2DMobile = {
    {
QT_MOC_LITERAL(0, 0, 13), // "Graph2DMobile"
QT_MOC_LITERAL(1, 14, 9), // "translate"
QT_MOC_LITERAL(2, 24, 0), // ""
QT_MOC_LITERAL(3, 25, 1), // "x"
QT_MOC_LITERAL(4, 27, 1), // "y"
QT_MOC_LITERAL(5, 29, 5), // "scale"
QT_MOC_LITERAL(6, 35, 1), // "s"
QT_MOC_LITERAL(7, 37, 13), // "resetViewport"
QT_MOC_LITERAL(8, 51, 11), // "addFunction"
QT_MOC_LITERAL(9, 63, 10), // "expression"
QT_MOC_LITERAL(10, 74, 20), // "Analitza::Variables*"
QT_MOC_LITERAL(11, 95, 4), // "vars"
QT_MOC_LITERAL(12, 100, 11), // "updateFuncs"
QT_MOC_LITERAL(13, 112, 5), // "start"
QT_MOC_LITERAL(14, 118, 3), // "end"
QT_MOC_LITERAL(15, 122, 8), // "addFuncs"
QT_MOC_LITERAL(16, 131, 6), // "parent"
QT_MOC_LITERAL(17, 138, 11), // "removeFuncs"
QT_MOC_LITERAL(18, 150, 5), // "model"
QT_MOC_LITERAL(19, 156, 19), // "QAbstractItemModel*"
QT_MOC_LITERAL(20, 176, 8), // "viewport"
QT_MOC_LITERAL(21, 185, 8), // "showGrid"
QT_MOC_LITERAL(22, 194, 15), // "keepAspectRatio"
QT_MOC_LITERAL(23, 210, 15), // "currentFunction"
QT_MOC_LITERAL(24, 226, 10) // "ticksShown"

    },
    "Graph2DMobile\0translate\0\0x\0y\0scale\0s\0"
    "resetViewport\0addFunction\0expression\0"
    "Analitza::Variables*\0vars\0updateFuncs\0"
    "start\0end\0addFuncs\0parent\0removeFuncs\0"
    "model\0QAbstractItemModel*\0viewport\0"
    "showGrid\0keepAspectRatio\0currentFunction\0"
    "ticksShown"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Graph2DMobile[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       8,   14, // methods
       6,   94, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       0,       // signalCount

 // slots: name, argc, parameters, tag, flags
       1,    2,   54,    2, 0x0a /* Public */,
       5,    3,   59,    2, 0x0a /* Public */,
       7,    0,   66,    2, 0x0a /* Public */,
       8,    2,   67,    2, 0x0a /* Public */,
       8,    1,   72,    2, 0x2a /* Public | MethodCloned */,
      12,    2,   75,    2, 0x08 /* Private */,
      15,    3,   80,    2, 0x08 /* Private */,
      17,    3,   87,    2, 0x08 /* Private */,

 // slots: parameters
    QMetaType::Void, QMetaType::QReal, QMetaType::QReal,    3,    4,
    QMetaType::Void, QMetaType::QReal, QMetaType::Int, QMetaType::Int,    6,    3,    4,
    QMetaType::Void,
    QMetaType::QStringList, QMetaType::QString, 0x80000000 | 10,    9,   11,
    QMetaType::QStringList, QMetaType::QString,    9,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QModelIndex,   13,   14,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,   16,   13,   14,
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::Int, QMetaType::Int,   16,   13,   14,

 // properties: name, type, flags
      18, 0x80000000 | 19, 0x0009510b,
      20, QMetaType::QRectF, 0x00095103,
      21, QMetaType::Bool, 0x00095103,
      22, QMetaType::Bool, 0x00095103,
      23, QMetaType::Bool, 0x00095103,
      24, QMetaType::Bool, 0x00095003,

       0        // eod
};

void Graph2DMobile::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        Graph2DMobile *_t = static_cast<Graph2DMobile *>(_o);
        switch (_id) {
        case 0: _t->translate((*reinterpret_cast< qreal(*)>(_a[1])),(*reinterpret_cast< qreal(*)>(_a[2]))); break;
        case 1: _t->scale((*reinterpret_cast< qreal(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 2: _t->resetViewport(); break;
        case 3: { QStringList _r = _t->addFunction((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< Analitza::Variables*(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = _r; }  break;
        case 4: { QStringList _r = _t->addFunction((*reinterpret_cast< const QString(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QStringList*>(_a[0]) = _r; }  break;
        case 5: _t->updateFuncs((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QModelIndex(*)>(_a[2]))); break;
        case 6: _t->addFuncs((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 7: _t->removeFuncs((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        default: ;
        }
    }
}

const QMetaObject Graph2DMobile::staticMetaObject = {
    { &QQuickItem::staticMetaObject, qt_meta_stringdata_Graph2DMobile.data,
      qt_meta_data_Graph2DMobile,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *Graph2DMobile::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_Graph2DMobile.stringdata))
        return static_cast<void*>(const_cast< Graph2DMobile*>(this));
    if (!strcmp(_clname, "Analitza::Plotter2D"))
        return static_cast< Analitza::Plotter2D*>(const_cast< Graph2DMobile*>(this));
    return QQuickItem::qt_metacast(_clname);
}

int Graph2DMobile::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuickItem::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 8;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QAbstractItemModel**>(_v) = model(); break;
        case 1: *reinterpret_cast< QRectF*>(_v) = lastViewport(); break;
        case 2: *reinterpret_cast< bool*>(_v) = showGrid(); break;
        case 3: *reinterpret_cast< bool*>(_v) = keepAspectRatio(); break;
        case 4: *reinterpret_cast< bool*>(_v) = currentFunction(); break;
        case 5: *reinterpret_cast< bool*>(_v) = ticksShownAtAll(); break;
        default: break;
        }
        _id -= 6;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setModel(*reinterpret_cast< QAbstractItemModel**>(_v)); break;
        case 1: setViewport(*reinterpret_cast< QRectF*>(_v)); break;
        case 2: setShowGrid(*reinterpret_cast< bool*>(_v)); break;
        case 3: setKeepAspectRatio(*reinterpret_cast< bool*>(_v)); break;
        case 4: setCurrentFunction(*reinterpret_cast< bool*>(_v)); break;
        case 5: setTicksShownAtAll(*reinterpret_cast< bool*>(_v)); break;
        default: break;
        }
        _id -= 6;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 6;
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        if (_id < 6)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 6;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
QT_END_MOC_NAMESPACE
