/****************************************************************************
** Meta object code from reading C++ file 'learningprogressmodel.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/models/learningprogressmodel.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'learningprogressmodel.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_LearningProgressModel_t {
    QByteArrayData data[24];
    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_LearningProgressModel_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_LearningProgressModel_t qt_meta_stringdata_LearningProgressModel = {
    {
QT_MOC_LITERAL(0, 0, 21), // "LearningProgressModel"
QT_MOC_LITERAL(1, 22, 14), // "profileChanged"
QT_MOC_LITERAL(2, 37, 0), // ""
QT_MOC_LITERAL(3, 38, 19), // "courseFilterChanged"
QT_MOC_LITERAL(4, 58, 19), // "lessonFilterChanged"
QT_MOC_LITERAL(5, 78, 34), // "maxCharactersTypedPerMinuteCh..."
QT_MOC_LITERAL(6, 113, 18), // "minAccuracyChanged"
QT_MOC_LITERAL(7, 132, 6), // "update"
QT_MOC_LITERAL(8, 139, 16), // "profileDestroyed"
QT_MOC_LITERAL(9, 156, 19), // "charactersPerMinute"
QT_MOC_LITERAL(10, 176, 3), // "row"
QT_MOC_LITERAL(11, 180, 15), // "charactersTyped"
QT_MOC_LITERAL(12, 196, 10), // "errorCount"
QT_MOC_LITERAL(13, 207, 11), // "elapsedTime"
QT_MOC_LITERAL(14, 219, 8), // "accuracy"
QT_MOC_LITERAL(15, 228, 8), // "lessonId"
QT_MOC_LITERAL(16, 237, 7), // "profile"
QT_MOC_LITERAL(17, 245, 8), // "Profile*"
QT_MOC_LITERAL(18, 254, 12), // "courseFilter"
QT_MOC_LITERAL(19, 267, 7), // "Course*"
QT_MOC_LITERAL(20, 275, 12), // "lessonFilter"
QT_MOC_LITERAL(21, 288, 7), // "Lesson*"
QT_MOC_LITERAL(22, 296, 27), // "maxCharactersTypedPerMinute"
QT_MOC_LITERAL(23, 324, 11) // "minAccuracy"

    },
    "LearningProgressModel\0profileChanged\0"
    "\0courseFilterChanged\0lessonFilterChanged\0"
    "maxCharactersTypedPerMinuteChanged\0"
    "minAccuracyChanged\0update\0profileDestroyed\0"
    "charactersPerMinute\0row\0charactersTyped\0"
    "errorCount\0elapsedTime\0accuracy\0"
    "lessonId\0profile\0Profile*\0courseFilter\0"
    "Course*\0lessonFilter\0Lesson*\0"
    "maxCharactersTypedPerMinute\0minAccuracy"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_LearningProgressModel[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      13,   14, // methods
       5,  104, // 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,    0,   84,    2, 0x0a /* Public */,
       8,    0,   85,    2, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
       9,    1,   86,    2, 0x02 /* Public */,
      11,    1,   89,    2, 0x02 /* Public */,
      12,    1,   92,    2, 0x02 /* Public */,
      13,    1,   95,    2, 0x02 /* Public */,
      14,    1,   98,    2, 0x02 /* Public */,
      15,    1,  101,    2, 0x02 /* Public */,

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

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,

 // methods: parameters
    QMetaType::Int, QMetaType::Int,   10,
    QMetaType::Int, QMetaType::Int,   10,
    QMetaType::Int, QMetaType::Int,   10,
    QMetaType::Int, QMetaType::Int,   10,
    QMetaType::QReal, QMetaType::Int,   10,
    QMetaType::QString, QMetaType::Int,   10,

 // properties: name, type, flags
      16, 0x80000000 | 17, 0x0049510b,
      18, 0x80000000 | 19, 0x0049510b,
      20, 0x80000000 | 21, 0x0049510b,
      22, QMetaType::Int, 0x00495001,
      23, QMetaType::QReal, 0x00495001,

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

       0        // eod
};

void LearningProgressModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        LearningProgressModel *_t = static_cast<LearningProgressModel *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->profileChanged(); break;
        case 1: _t->courseFilterChanged(); break;
        case 2: _t->lessonFilterChanged(); break;
        case 3: _t->maxCharactersTypedPerMinuteChanged(); break;
        case 4: _t->minAccuracyChanged(); break;
        case 5: _t->update(); break;
        case 6: _t->profileDestroyed(); break;
        case 7: { int _r = _t->charactersPerMinute((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 8: { int _r = _t->charactersTyped((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 9: { int _r = _t->errorCount((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 10: { int _r = _t->elapsedTime((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< int*>(_a[0]) = std::move(_r); }  break;
        case 11: { qreal _r = _t->accuracy((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< qreal*>(_a[0]) = std::move(_r); }  break;
        case 12: { QString _r = _t->lessonId((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (LearningProgressModel::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LearningProgressModel::profileChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (LearningProgressModel::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LearningProgressModel::courseFilterChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (LearningProgressModel::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LearningProgressModel::lessonFilterChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (LearningProgressModel::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LearningProgressModel::maxCharactersTypedPerMinuteChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (LearningProgressModel::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&LearningProgressModel::minAccuracyChanged)) {
                *result = 4;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        LearningProgressModel *_t = static_cast<LearningProgressModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< Profile**>(_v) = _t->profile(); break;
        case 1: *reinterpret_cast< Course**>(_v) = _t->courseFilter(); break;
        case 2: *reinterpret_cast< Lesson**>(_v) = _t->lessonFilter(); break;
        case 3: *reinterpret_cast< int*>(_v) = _t->maxCharactersTypedPerMinute(); break;
        case 4: *reinterpret_cast< qreal*>(_v) = _t->minAccuracy(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        LearningProgressModel *_t = static_cast<LearningProgressModel *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setProfile(*reinterpret_cast< Profile**>(_v)); break;
        case 1: _t->setCourseFilter(*reinterpret_cast< Course**>(_v)); break;
        case 2: _t->setLessonFilter(*reinterpret_cast< Lesson**>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject LearningProgressModel::staticMetaObject = {
    { &QSqlQueryModel::staticMetaObject, qt_meta_stringdata_LearningProgressModel.data,
      qt_meta_data_LearningProgressModel,  qt_static_metacall, nullptr, nullptr}
};


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

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

int LearningProgressModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QSqlQueryModel::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)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _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 LearningProgressModel::profileChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

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

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

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