/****************************************************************************
** Meta object code from reading C++ file 'vocabularymodel.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/parley-17.08.3/src/collection/vocabularymodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'vocabularymodel.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_VocabularyModel_t {
    QByteArrayData data[16];
    char stringdata0[201];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_VocabularyModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_VocabularyModel_t qt_meta_stringdata_VocabularyModel = {
    {
QT_MOC_LITERAL(0, 0, 15), // "VocabularyModel"
QT_MOC_LITERAL(1, 16, 11), // "setDocument"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 16), // "KEduVocDocument*"
QT_MOC_LITERAL(4, 46, 3), // "doc"
QT_MOC_LITERAL(5, 50, 13), // "showContainer"
QT_MOC_LITERAL(6, 64, 17), // "KEduVocContainer*"
QT_MOC_LITERAL(7, 82, 9), // "container"
QT_MOC_LITERAL(8, 92, 9), // "setLesson"
QT_MOC_LITERAL(9, 102, 14), // "KEduVocLesson*"
QT_MOC_LITERAL(10, 117, 15), // "lessonContainer"
QT_MOC_LITERAL(11, 133, 6), // "lesson"
QT_MOC_LITERAL(12, 140, 26), // "showEntriesOfSubcontainers"
QT_MOC_LITERAL(13, 167, 4), // "show"
QT_MOC_LITERAL(14, 172, 20), // "automaticTranslation"
QT_MOC_LITERAL(15, 193, 7) // "enabled"

    },
    "VocabularyModel\0setDocument\0\0"
    "KEduVocDocument*\0doc\0showContainer\0"
    "KEduVocContainer*\0container\0setLesson\0"
    "KEduVocLesson*\0lessonContainer\0lesson\0"
    "showEntriesOfSubcontainers\0show\0"
    "automaticTranslation\0enabled"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_VocabularyModel[] = {

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

 // slots: name, argc, parameters, tag, flags
       1,    1,   44,    2, 0x0a /* Public */,
       5,    1,   47,    2, 0x0a /* Public */,
       8,    1,   50,    2, 0x0a /* Public */,
      11,    0,   53,    2, 0x0a /* Public */,
      12,    1,   54,    2, 0x0a /* Public */,
      14,    1,   57,    2, 0x0a /* Public */,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void, 0x80000000 | 6,    7,
    QMetaType::Void, 0x80000000 | 9,   10,
    0x80000000 | 9,
    QMetaType::Void, QMetaType::Bool,   13,
    QMetaType::Void, QMetaType::Bool,   15,

       0        // eod
};

void VocabularyModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        VocabularyModel *_t = static_cast<VocabularyModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->setDocument((*reinterpret_cast< KEduVocDocument*(*)>(_a[1]))); break;
        case 1: _t->showContainer((*reinterpret_cast< KEduVocContainer*(*)>(_a[1]))); break;
        case 2: _t->setLesson((*reinterpret_cast< KEduVocLesson*(*)>(_a[1]))); break;
        case 3: { KEduVocLesson* _r = _t->lesson();
            if (_a[0]) *reinterpret_cast< KEduVocLesson**>(_a[0]) = std::move(_r); }  break;
        case 4: _t->showEntriesOfSubcontainers((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 5: _t->automaticTranslation((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    }
}

const QMetaObject VocabularyModel::staticMetaObject = {
    { &QAbstractTableModel::staticMetaObject, qt_meta_stringdata_VocabularyModel.data,
      qt_meta_data_VocabularyModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

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