/****************************************************************************
** Meta object code from reading C++ file 'keyboardlayout.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/ktouch-17.12.3/src/core/keyboardlayout.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'keyboardlayout.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_KeyboardLayout_t {
    QByteArrayData data[25];
    char stringdata0[336];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KeyboardLayout_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KeyboardLayout_t qt_meta_stringdata_KeyboardLayout = {
    {
QT_MOC_LITERAL(0, 0, 14), // "KeyboardLayout"
QT_MOC_LITERAL(1, 15, 40), // "associatedDataIndexKeyboardLa..."
QT_MOC_LITERAL(2, 56, 0), // ""
QT_MOC_LITERAL(3, 57, 12), // "widthChanged"
QT_MOC_LITERAL(4, 70, 13), // "heightChanged"
QT_MOC_LITERAL(5, 84, 19), // "referenceKeyChanged"
QT_MOC_LITERAL(6, 104, 15), // "keyCountChanged"
QT_MOC_LITERAL(7, 120, 20), // "onKeyGeometryChanged"
QT_MOC_LITERAL(8, 141, 8), // "keyIndex"
QT_MOC_LITERAL(9, 150, 3), // "key"
QT_MOC_LITERAL(10, 154, 12), // "AbstractKey*"
QT_MOC_LITERAL(11, 167, 5), // "index"
QT_MOC_LITERAL(12, 173, 6), // "addKey"
QT_MOC_LITERAL(13, 180, 9), // "insertKey"
QT_MOC_LITERAL(14, 190, 9), // "removeKey"
QT_MOC_LITERAL(15, 200, 9), // "clearKeys"
QT_MOC_LITERAL(16, 210, 8), // "copyFrom"
QT_MOC_LITERAL(17, 219, 15), // "KeyboardLayout*"
QT_MOC_LITERAL(18, 235, 6), // "source"
QT_MOC_LITERAL(19, 242, 33), // "associatedDataIndexKeyboardLa..."
QT_MOC_LITERAL(20, 276, 24), // "DataIndexKeyboardLayout*"
QT_MOC_LITERAL(21, 301, 12), // "referenceKey"
QT_MOC_LITERAL(22, 314, 5), // "width"
QT_MOC_LITERAL(23, 320, 6), // "height"
QT_MOC_LITERAL(24, 327, 8) // "keyCount"

    },
    "KeyboardLayout\0associatedDataIndexKeyboardLayoutChanged\0"
    "\0widthChanged\0heightChanged\0"
    "referenceKeyChanged\0keyCountChanged\0"
    "onKeyGeometryChanged\0keyIndex\0key\0"
    "AbstractKey*\0index\0addKey\0insertKey\0"
    "removeKey\0clearKeys\0copyFrom\0"
    "KeyboardLayout*\0source\0"
    "associatedDataIndexKeyboardLayout\0"
    "DataIndexKeyboardLayout*\0referenceKey\0"
    "width\0height\0keyCount"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KeyboardLayout[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   79,    2, 0x06 /* Public */,
       3,    0,   80,    2, 0x06 /* Public */,
       4,    0,   81,    2, 0x06 /* Public */,
       5,    0,   82,    2, 0x06 /* Public */,
       6,    0,   83,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       7,    1,   84,    2, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
       9,    1,   87,    2, 0x02 /* Public */,
       8,    1,   90,    2, 0x02 /* Public */,
      12,    1,   93,    2, 0x02 /* Public */,
      13,    2,   96,    2, 0x02 /* Public */,
      14,    1,  101,    2, 0x02 /* Public */,
      15,    0,  104,    2, 0x02 /* Public */,
      16,    1,  105,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

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

 // methods: parameters
    0x80000000 | 10, QMetaType::Int,   11,
    QMetaType::Int, 0x80000000 | 10,    9,
    QMetaType::Void, 0x80000000 | 10,    9,
    QMetaType::Void, QMetaType::Int, 0x80000000 | 10,   11,    9,
    QMetaType::Void, QMetaType::Int,   11,
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 17,   18,

 // properties: name, type, flags
      19, 0x80000000 | 20, 0x0049510b,
      21, 0x80000000 | 10, 0x00495009,
      22, QMetaType::Int, 0x00495103,
      23, QMetaType::Int, 0x00495103,
      24, QMetaType::Int, 0x00495001,

 // properties: notify_signal_id
       0,
       3,
       1,
       2,
       4,

       0        // eod
};

void KeyboardLayout::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KeyboardLayout *_t = static_cast<KeyboardLayout *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->associatedDataIndexKeyboardLayoutChanged(); break;
        case 1: _t->widthChanged(); break;
        case 2: _t->heightChanged(); break;
        case 3: _t->referenceKeyChanged(); break;
        case 4: _t->keyCountChanged(); break;
        case 5: _t->onKeyGeometryChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 6: { AbstractKey* _r = _t->key((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< AbstractKey**>(_a[0]) = std::move(_r); }  break;
        case 7: { int _r = _t->keyIndex((*reinterpret_cast< AbstractKey*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 8: _t->addKey((*reinterpret_cast< AbstractKey*(*)>(_a[1]))); break;
        case 9: _t->insertKey((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< AbstractKey*(*)>(_a[2]))); break;
        case 10: _t->removeKey((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 11: _t->clearKeys(); break;
        case 12: _t->copyFrom((*reinterpret_cast< KeyboardLayout*(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 12:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<int*>(_a[0]) = -1; break;
            case 0:
                *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< KeyboardLayout* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (KeyboardLayout::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KeyboardLayout::associatedDataIndexKeyboardLayoutChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KeyboardLayout::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KeyboardLayout::widthChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (KeyboardLayout::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KeyboardLayout::heightChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (KeyboardLayout::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KeyboardLayout::referenceKeyChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (KeyboardLayout::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&KeyboardLayout::keyCountChanged)) {
                *result = 4;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        KeyboardLayout *_t = static_cast<KeyboardLayout *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< DataIndexKeyboardLayout**>(_v) = _t->associatedDataIndexKeyboardLayout(); break;
        case 1: *reinterpret_cast< AbstractKey**>(_v) = _t->referenceKey(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->width(); break;
        case 3: *reinterpret_cast< int*>(_v) = _t->height(); break;
        case 4: *reinterpret_cast< int*>(_v) = _t->keyCount(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        KeyboardLayout *_t = static_cast<KeyboardLayout *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setAssociatedDataIndexKeyboardLayout(*reinterpret_cast< DataIndexKeyboardLayout**>(_v)); break;
        case 2: _t->setWidth(*reinterpret_cast< int*>(_v)); break;
        case 3: _t->setHeight(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KeyboardLayout::staticMetaObject = {
    { &KeyboardLayoutBase::staticMetaObject, qt_meta_stringdata_KeyboardLayout.data,
      qt_meta_data_KeyboardLayout,  qt_static_metacall, nullptr, nullptr}
};


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

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

int KeyboardLayout::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = KeyboardLayoutBase::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
#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 -= 5;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 5;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 5;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void KeyboardLayout::associatedDataIndexKeyboardLayoutChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

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

// SIGNAL 3
void KeyboardLayout::referenceKeyChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void KeyboardLayout::keyCountChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
