/****************************************************************************
** Meta object code from reading C++ file 'worldmodel.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/step-17.12.3/step/worldmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'worldmodel.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_WorldModel_t {
    QByteArrayData data[15];
    char stringdata0[217];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_WorldModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_WorldModel_t qt_meta_stringdata_WorldModel = {
    {
QT_MOC_LITERAL(0, 0, 10), // "WorldModel"
QT_MOC_LITERAL(1, 11, 16), // "worldDataChanged"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 11), // "dynamicOnly"
QT_MOC_LITERAL(4, 41, 17), // "simulationStopped"
QT_MOC_LITERAL(5, 59, 6), // "result"
QT_MOC_LITERAL(6, 66, 15), // "simulationStart"
QT_MOC_LITERAL(7, 82, 14), // "simulationStop"
QT_MOC_LITERAL(8, 97, 16), // "cutSelectedItems"
QT_MOC_LITERAL(9, 114, 17), // "copySelectedItems"
QT_MOC_LITERAL(10, 132, 10), // "pasteItems"
QT_MOC_LITERAL(11, 143, 19), // "deleteSelectedItems"
QT_MOC_LITERAL(12, 163, 20), // "simulationFrameBegin"
QT_MOC_LITERAL(13, 184, 18), // "simulationFrameEnd"
QT_MOC_LITERAL(14, 203, 13) // "doEmitChanged"

    },
    "WorldModel\0worldDataChanged\0\0dynamicOnly\0"
    "simulationStopped\0result\0simulationStart\0"
    "simulationStop\0cutSelectedItems\0"
    "copySelectedItems\0pasteItems\0"
    "deleteSelectedItems\0simulationFrameBegin\0"
    "simulationFrameEnd\0doEmitChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_WorldModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   69,    2, 0x06 /* Public */,
       4,    1,   72,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    0,   75,    2, 0x0a /* Public */,
       7,    0,   76,    2, 0x0a /* Public */,
       8,    0,   77,    2, 0x0a /* Public */,
       9,    0,   78,    2, 0x0a /* Public */,
      10,    0,   79,    2, 0x0a /* Public */,
      11,    0,   80,    2, 0x0a /* Public */,
      12,    0,   81,    2, 0x09 /* Protected */,
      13,    1,   82,    2, 0x09 /* Protected */,
      14,    0,   85,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void, QMetaType::Bool,    3,
    QMetaType::Void, QMetaType::Int,    5,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,    5,
    QMetaType::Void,

       0        // eod
};

void WorldModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        WorldModel *_t = static_cast<WorldModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->worldDataChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 1: _t->simulationStopped((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: _t->simulationStart(); break;
        case 3: _t->simulationStop(); break;
        case 4: _t->cutSelectedItems(); break;
        case 5: _t->copySelectedItems(); break;
        case 6: _t->pasteItems(); break;
        case 7: _t->deleteSelectedItems(); break;
        case 8: _t->simulationFrameBegin(); break;
        case 9: _t->simulationFrameEnd((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 10: _t->doEmitChanged(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (WorldModel::*_t)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WorldModel::worldDataChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (WorldModel::*_t)(int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&WorldModel::simulationStopped)) {
                *result = 1;
                return;
            }
        }
    }
}

const QMetaObject WorldModel::staticMetaObject = {
    { &QAbstractItemModel::staticMetaObject, qt_meta_stringdata_WorldModel.data,
      qt_meta_data_WorldModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

// SIGNAL 0
void WorldModel::worldDataChanged(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void WorldModel::simulationStopped(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
