/****************************************************************************
** Meta object code from reading C++ file 'preferencesproxy.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../src/ktouch-17.04.3/src/declarativeitems/preferencesproxy.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'preferencesproxy.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.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
struct qt_meta_stringdata_PreferencesProxy_t {
    QByteArrayData data[13];
    char stringdata0[187];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_PreferencesProxy_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_PreferencesProxy_t qt_meta_stringdata_PreferencesProxy = {
    {
QT_MOC_LITERAL(0, 0, 16), // "PreferencesProxy"
QT_MOC_LITERAL(1, 17, 13), // "configChanged"
QT_MOC_LITERAL(2, 31, 0), // ""
QT_MOC_LITERAL(3, 32, 11), // "fingerColor"
QT_MOC_LITERAL(4, 44, 5), // "index"
QT_MOC_LITERAL(5, 50, 11), // "writeConfig"
QT_MOC_LITERAL(6, 62, 12), // "showKeyboard"
QT_MOC_LITERAL(7, 75, 14), // "showStatistics"
QT_MOC_LITERAL(8, 90, 17), // "nextLineWithSpace"
QT_MOC_LITERAL(9, 108, 18), // "nextLineWithReturn"
QT_MOC_LITERAL(10, 127, 24), // "requiredStrokesPerMinute"
QT_MOC_LITERAL(11, 152, 16), // "requiredAccuracy"
QT_MOC_LITERAL(12, 169, 17) // "lastUsedProfileId"

    },
    "PreferencesProxy\0configChanged\0\0"
    "fingerColor\0index\0writeConfig\0"
    "showKeyboard\0showStatistics\0"
    "nextLineWithSpace\0nextLineWithReturn\0"
    "requiredStrokesPerMinute\0requiredAccuracy\0"
    "lastUsedProfileId"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_PreferencesProxy[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   29,    2, 0x06 /* Public */,

 // methods: name, argc, parameters, tag, flags
       3,    1,   30,    2, 0x02 /* Public */,
       5,    0,   33,    2, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,

 // methods: parameters
    QMetaType::QColor, QMetaType::Int,    4,
    QMetaType::Void,

 // properties: name, type, flags
       6, QMetaType::Bool, 0x00495103,
       7, QMetaType::Bool, 0x00495103,
       8, QMetaType::Bool, 0x00495103,
       9, QMetaType::Bool, 0x00495103,
      10, QMetaType::Int, 0x00495103,
      11, QMetaType::Double, 0x00495103,
      12, QMetaType::Int, 0x00495103,

 // properties: notify_signal_id
       0,
       0,
       0,
       0,
       0,
       0,
       0,

       0        // eod
};

void PreferencesProxy::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PreferencesProxy *_t = static_cast<PreferencesProxy *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->configChanged(); break;
        case 1: { QColor _r = _t->fingerColor((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QColor*>(_a[0]) = _r; }  break;
        case 2: _t->writeConfig(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (PreferencesProxy::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PreferencesProxy::configChanged)) {
                *result = 0;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        PreferencesProxy *_t = static_cast<PreferencesProxy *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = _t->showKeyboard(); break;
        case 1: *reinterpret_cast< bool*>(_v) = _t->showStatistics(); break;
        case 2: *reinterpret_cast< bool*>(_v) = _t->nextLineWithSpace(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->nextLineWithReturn(); break;
        case 4: *reinterpret_cast< int*>(_v) = _t->requiredStrokesPerMinute(); break;
        case 5: *reinterpret_cast< double*>(_v) = _t->requiredAccuracy(); break;
        case 6: *reinterpret_cast< int*>(_v) = _t->lastUsedProfileId(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        PreferencesProxy *_t = static_cast<PreferencesProxy *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setShowKeyboard(*reinterpret_cast< bool*>(_v)); break;
        case 1: _t->setShowStatistics(*reinterpret_cast< bool*>(_v)); break;
        case 2: _t->setNextLineWithSpace(*reinterpret_cast< bool*>(_v)); break;
        case 3: _t->setNextLineWithReturn(*reinterpret_cast< bool*>(_v)); break;
        case 4: _t->setRequiredStrokesPerMinute(*reinterpret_cast< int*>(_v)); break;
        case 5: _t->setRequiredAccuracy(*reinterpret_cast< double*>(_v)); break;
        case 6: _t->setLastUsedProfileId(*reinterpret_cast< int*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject PreferencesProxy::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_PreferencesProxy.data,
      qt_meta_data_PreferencesProxy,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *PreferencesProxy::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_PreferencesProxy.stringdata0))
        return static_cast<void*>(const_cast< PreferencesProxy*>(this));
    return QObject::qt_metacast(_clname);
}

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

// SIGNAL 0
void PreferencesProxy::configChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
