/****************************************************************************
** Meta object code from reading C++ file 'phraselistmodel.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/artikulate-17.08.3/src/models/phraselistmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'phraselistmodel.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_PhraseListModel_t {
    QByteArrayData data[19];
    char stringdata0[212];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_PhraseListModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_PhraseListModel_t qt_meta_stringdata_PhraseListModel = {
    {
QT_MOC_LITERAL(0, 0, 15), // "PhraseListModel"
QT_MOC_LITERAL(1, 16, 13), // "phraseChanged"
QT_MOC_LITERAL(2, 30, 0), // ""
QT_MOC_LITERAL(3, 31, 5), // "index"
QT_MOC_LITERAL(4, 37, 11), // "unitChanged"
QT_MOC_LITERAL(5, 49, 11), // "typeChanged"
QT_MOC_LITERAL(6, 61, 12), // "countChanged"
QT_MOC_LITERAL(7, 74, 22), // "onPhraseAboutToBeAdded"
QT_MOC_LITERAL(8, 97, 7), // "Phrase*"
QT_MOC_LITERAL(9, 105, 4), // "unit"
QT_MOC_LITERAL(10, 110, 13), // "onPhraseAdded"
QT_MOC_LITERAL(11, 124, 25), // "onPhrasesAboutToBeRemoved"
QT_MOC_LITERAL(12, 150, 5), // "first"
QT_MOC_LITERAL(13, 156, 4), // "last"
QT_MOC_LITERAL(14, 161, 16), // "onPhrasesRemoved"
QT_MOC_LITERAL(15, 178, 17), // "emitPhraseChanged"
QT_MOC_LITERAL(16, 196, 3), // "row"
QT_MOC_LITERAL(17, 200, 5), // "Unit*"
QT_MOC_LITERAL(18, 206, 5) // "count"

    },
    "PhraseListModel\0phraseChanged\0\0index\0"
    "unitChanged\0typeChanged\0countChanged\0"
    "onPhraseAboutToBeAdded\0Phrase*\0unit\0"
    "onPhraseAdded\0onPhrasesAboutToBeRemoved\0"
    "first\0last\0onPhrasesRemoved\0"
    "emitPhraseChanged\0row\0Unit*\0count"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_PhraseListModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   59,    2, 0x06 /* Public */,
       4,    0,   62,    2, 0x06 /* Public */,
       5,    0,   63,    2, 0x06 /* Public */,
       6,    0,   64,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       7,    2,   65,    2, 0x08 /* Private */,
      10,    0,   70,    2, 0x08 /* Private */,
      11,    2,   71,    2, 0x08 /* Private */,
      14,    0,   76,    2, 0x08 /* Private */,
      15,    1,   77,    2, 0x08 /* Private */,

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

 // slots: parameters
    QMetaType::Void, 0x80000000 | 8, QMetaType::Int,    9,    3,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   12,   13,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int,   16,

 // properties: name, type, flags
       9, 0x80000000 | 17, 0x0049510b,
      18, QMetaType::Int, 0x00495001,

 // properties: notify_signal_id
       1,
       3,

       0        // eod
};

void PhraseListModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PhraseListModel *_t = static_cast<PhraseListModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->phraseChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 1: _t->unitChanged(); break;
        case 2: _t->typeChanged(); break;
        case 3: _t->countChanged(); break;
        case 4: _t->onPhraseAboutToBeAdded((*reinterpret_cast< Phrase*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 5: _t->onPhraseAdded(); break;
        case 6: _t->onPhrasesAboutToBeRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 7: _t->onPhrasesRemoved(); break;
        case 8: _t->emitPhraseChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Phrase* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (PhraseListModel::*_t)(int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PhraseListModel::phraseChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (PhraseListModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PhraseListModel::unitChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (PhraseListModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PhraseListModel::typeChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (PhraseListModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PhraseListModel::countChanged)) {
                *result = 3;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        PhraseListModel *_t = static_cast<PhraseListModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< Unit**>(_v) = _t->unit(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->count(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        PhraseListModel *_t = static_cast<PhraseListModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setUnit(*reinterpret_cast< Unit**>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject PhraseListModel::staticMetaObject = {
    { &QAbstractListModel::staticMetaObject, qt_meta_stringdata_PhraseListModel.data,
      qt_meta_data_PhraseListModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int PhraseListModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractListModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
#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 PhraseListModel::phraseChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void PhraseListModel::unitChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void PhraseListModel::typeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void PhraseListModel::countChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
