/****************************************************************************
** Meta object code from reading C++ file 'charactersmodel.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/ktouch-17.08.3/src/models/charactersmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'charactersmodel.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_CharactersModel_t {
    QByteArrayData data[20];
    char stringdata0[263];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_CharactersModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_CharactersModel_t qt_meta_stringdata_CharactersModel = {
    {
QT_MOC_LITERAL(0, 0, 15), // "CharactersModel"
QT_MOC_LITERAL(1, 16, 15), // "aboutToBeEdited"
QT_MOC_LITERAL(2, 32, 0), // ""
QT_MOC_LITERAL(3, 33, 5), // "index"
QT_MOC_LITERAL(4, 39, 8), // "newValue"
QT_MOC_LITERAL(5, 48, 21), // "keyboardLayoutChanged"
QT_MOC_LITERAL(6, 70, 15), // "keyIndexChanged"
QT_MOC_LITERAL(7, 86, 23), // "onKeyCharAboutToBeAdded"
QT_MOC_LITERAL(8, 110, 8), // "KeyChar*"
QT_MOC_LITERAL(9, 119, 7), // "keyChar"
QT_MOC_LITERAL(10, 127, 14), // "onKeyCharAdded"
QT_MOC_LITERAL(11, 142, 26), // "onKeyCharsAboutToBeRemoved"
QT_MOC_LITERAL(12, 169, 5), // "first"
QT_MOC_LITERAL(13, 175, 4), // "last"
QT_MOC_LITERAL(14, 180, 17), // "onKeyCharsRemoved"
QT_MOC_LITERAL(15, 198, 20), // "emitCharacterChanged"
QT_MOC_LITERAL(16, 219, 3), // "row"
QT_MOC_LITERAL(17, 223, 14), // "keyboardLayout"
QT_MOC_LITERAL(18, 238, 15), // "KeyboardLayout*"
QT_MOC_LITERAL(19, 254, 8) // "keyIndex"

    },
    "CharactersModel\0aboutToBeEdited\0\0index\0"
    "newValue\0keyboardLayoutChanged\0"
    "keyIndexChanged\0onKeyCharAboutToBeAdded\0"
    "KeyChar*\0keyChar\0onKeyCharAdded\0"
    "onKeyCharsAboutToBeRemoved\0first\0last\0"
    "onKeyCharsRemoved\0emitCharacterChanged\0"
    "row\0keyboardLayout\0KeyboardLayout*\0"
    "keyIndex"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_CharactersModel[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    2,   54,    2, 0x06 /* Public */,
       5,    0,   59,    2, 0x06 /* Public */,
       6,    0,   60,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       7,    2,   61,    2, 0x08 /* Private */,
      10,    0,   66,    2, 0x08 /* Private */,
      11,    2,   67,    2, 0x08 /* Private */,
      14,    0,   72,    2, 0x08 /* Private */,
      15,    1,   73,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QModelIndex, QMetaType::QVariant,    3,    4,
    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
      17, 0x80000000 | 18, 0x0049510b,
      19, QMetaType::Int, 0x00495103,

 // properties: notify_signal_id
       1,
       2,

       0        // eod
};

void CharactersModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        CharactersModel *_t = static_cast<CharactersModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->aboutToBeEdited((*reinterpret_cast< const QModelIndex(*)>(_a[1])),(*reinterpret_cast< const QVariant(*)>(_a[2]))); break;
        case 1: _t->keyboardLayoutChanged(); break;
        case 2: _t->keyIndexChanged(); break;
        case 3: _t->onKeyCharAboutToBeAdded((*reinterpret_cast< KeyChar*(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 4: _t->onKeyCharAdded(); break;
        case 5: _t->onKeyCharsAboutToBeRemoved((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 6: _t->onKeyCharsRemoved(); break;
        case 7: _t->emitCharacterChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (CharactersModel::*_t)(const QModelIndex & , const QVariant & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CharactersModel::aboutToBeEdited)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (CharactersModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CharactersModel::keyboardLayoutChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (CharactersModel::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&CharactersModel::keyIndexChanged)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        CharactersModel *_t = static_cast<CharactersModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< KeyboardLayout**>(_v) = _t->keyboardLayout(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->keyIndex(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        CharactersModel *_t = static_cast<CharactersModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setKeyboardLayout(*reinterpret_cast< KeyboardLayout**>(_v)); break;
        case 1: _t->setKeyIndex(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject CharactersModel::staticMetaObject = {
    { &QAbstractTableModel::staticMetaObject, qt_meta_stringdata_CharactersModel.data,
      qt_meta_data_CharactersModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int CharactersModel::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 < 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 || _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 CharactersModel::aboutToBeEdited(const QModelIndex & _t1, const QVariant & _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

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

// SIGNAL 2
void CharactersModel::keyIndexChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
