/****************************************************************************
** Meta object code from reading C++ file 'specialkey.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/specialkey.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'specialkey.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_SpecialKey_t {
    QByteArrayData data[20];
    char stringdata0[166];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_SpecialKey_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_SpecialKey_t qt_meta_stringdata_SpecialKey = {
    {
QT_MOC_LITERAL(0, 0, 10), // "SpecialKey"
QT_MOC_LITERAL(1, 11, 11), // "typeChanged"
QT_MOC_LITERAL(2, 23, 0), // ""
QT_MOC_LITERAL(3, 24, 17), // "modifierIdChanged"
QT_MOC_LITERAL(4, 42, 12), // "labelChanged"
QT_MOC_LITERAL(5, 55, 7), // "keyType"
QT_MOC_LITERAL(6, 63, 8), // "copyFrom"
QT_MOC_LITERAL(7, 72, 11), // "SpecialKey*"
QT_MOC_LITERAL(8, 84, 6), // "source"
QT_MOC_LITERAL(9, 91, 4), // "type"
QT_MOC_LITERAL(10, 96, 4), // "Type"
QT_MOC_LITERAL(11, 101, 10), // "modifierId"
QT_MOC_LITERAL(12, 112, 5), // "label"
QT_MOC_LITERAL(13, 118, 3), // "Tab"
QT_MOC_LITERAL(14, 122, 8), // "Capslock"
QT_MOC_LITERAL(15, 131, 5), // "Shift"
QT_MOC_LITERAL(16, 137, 9), // "Backspace"
QT_MOC_LITERAL(17, 147, 6), // "Return"
QT_MOC_LITERAL(18, 154, 5), // "Space"
QT_MOC_LITERAL(19, 160, 5) // "Other"

    },
    "SpecialKey\0typeChanged\0\0modifierIdChanged\0"
    "labelChanged\0keyType\0copyFrom\0SpecialKey*\0"
    "source\0type\0Type\0modifierId\0label\0Tab\0"
    "Capslock\0Shift\0Backspace\0Return\0Space\0"
    "Other"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_SpecialKey[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
       5,   14, // methods
       3,   46, // properties
       1,   58, // enums/sets
       0,    0, // constructors
       0,       // flags
       3,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   39,    2, 0x06 /* Public */,
       3,    0,   40,    2, 0x06 /* Public */,
       4,    0,   41,    2, 0x06 /* Public */,

 // methods: name, argc, parameters, tag, flags
       5,    0,   42,    2, 0x02 /* Public */,
       6,    1,   43,    2, 0x02 /* Public */,

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

 // methods: parameters
    QMetaType::QString,
    QMetaType::Void, 0x80000000 | 7,    8,

 // properties: name, type, flags
       9, 0x80000000 | 10, 0x0049510b,
      11, QMetaType::QString, 0x00495103,
      12, QMetaType::QString, 0x00495103,

 // properties: notify_signal_id
       0,
       1,
       2,

 // enums: name, flags, count, data
      10, 0x0,    7,   62,

 // enum data: key, value
      13, uint(SpecialKey::Tab),
      14, uint(SpecialKey::Capslock),
      15, uint(SpecialKey::Shift),
      16, uint(SpecialKey::Backspace),
      17, uint(SpecialKey::Return),
      18, uint(SpecialKey::Space),
      19, uint(SpecialKey::Other),

       0        // eod
};

void SpecialKey::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        SpecialKey *_t = static_cast<SpecialKey *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->typeChanged(); break;
        case 1: _t->modifierIdChanged(); break;
        case 2: _t->labelChanged(); break;
        case 3: { QString _r = _t->keyType();
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        case 4: _t->copyFrom((*reinterpret_cast< SpecialKey*(*)>(_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< SpecialKey* >(); break;
            }
            break;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (SpecialKey::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SpecialKey::typeChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (SpecialKey::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SpecialKey::modifierIdChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (SpecialKey::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SpecialKey::labelChanged)) {
                *result = 2;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        SpecialKey *_t = static_cast<SpecialKey *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< Type*>(_v) = _t->type(); break;
        case 1: *reinterpret_cast< QString*>(_v) = _t->modifierId(); break;
        case 2: *reinterpret_cast< QString*>(_v) = _t->label(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        SpecialKey *_t = static_cast<SpecialKey *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setType(*reinterpret_cast< Type*>(_v)); break;
        case 1: _t->setModifierId(*reinterpret_cast< QString*>(_v)); break;
        case 2: _t->setLabel(*reinterpret_cast< QString*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject SpecialKey::staticMetaObject = {
    { &AbstractKey::staticMetaObject, qt_meta_stringdata_SpecialKey.data,
      qt_meta_data_SpecialKey,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

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

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

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