/****************************************************************************
** Meta object code from reading C++ file 'lessonpainter.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/lessonpainter.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'lessonpainter.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_LessonPainter_t {
    QByteArrayData data[20];
    char stringdata0[301];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_LessonPainter_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_LessonPainter_t qt_meta_stringdata_LessonPainter = {
    {
QT_MOC_LITERAL(0, 0, 13), // "LessonPainter"
QT_MOC_LITERAL(1, 14, 13), // "lessonChanged"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 19), // "maximumWidthChanged"
QT_MOC_LITERAL(4, 49, 20), // "maximumHeightChanged"
QT_MOC_LITERAL(5, 70, 23), // "trainingLineCoreChanged"
QT_MOC_LITERAL(6, 94, 22), // "cursorRectangleChanged"
QT_MOC_LITERAL(7, 117, 4), // "done"
QT_MOC_LITERAL(8, 122, 5), // "reset"
QT_MOC_LITERAL(9, 128, 12), // "updateLayout"
QT_MOC_LITERAL(10, 141, 19), // "resetTrainingStatus"
QT_MOC_LITERAL(11, 161, 20), // "updateTrainingStatus"
QT_MOC_LITERAL(12, 182, 25), // "advanceToNextTrainingLine"
QT_MOC_LITERAL(13, 208, 6), // "lesson"
QT_MOC_LITERAL(14, 215, 7), // "Lesson*"
QT_MOC_LITERAL(15, 223, 12), // "maximumWidth"
QT_MOC_LITERAL(16, 236, 13), // "maximumHeight"
QT_MOC_LITERAL(17, 250, 16), // "trainingLineCore"
QT_MOC_LITERAL(18, 267, 17), // "TrainingLineCore*"
QT_MOC_LITERAL(19, 285, 15) // "cursorRectangle"

    },
    "LessonPainter\0lessonChanged\0\0"
    "maximumWidthChanged\0maximumHeightChanged\0"
    "trainingLineCoreChanged\0cursorRectangleChanged\0"
    "done\0reset\0updateLayout\0resetTrainingStatus\0"
    "updateTrainingStatus\0advanceToNextTrainingLine\0"
    "lesson\0Lesson*\0maximumWidth\0maximumHeight\0"
    "trainingLineCore\0TrainingLineCore*\0"
    "cursorRectangle"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_LessonPainter[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      11,   14, // methods
       5,   80, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       6,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    0,   69,    2, 0x06 /* Public */,
       3,    0,   70,    2, 0x06 /* Public */,
       4,    0,   71,    2, 0x06 /* Public */,
       5,    0,   72,    2, 0x06 /* Public */,
       6,    0,   73,    2, 0x06 /* Public */,
       7,    0,   74,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    0,   75,    2, 0x0a /* Public */,
       9,    0,   76,    2, 0x08 /* Private */,
      10,    0,   77,    2, 0x08 /* Private */,
      11,    0,   78,    2, 0x08 /* Private */,
      12,    0,   79,    2, 0x08 /* Private */,

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

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

 // properties: name, type, flags
      13, 0x80000000 | 14, 0x0049510b,
      15, QMetaType::QReal, 0x00495103,
      16, QMetaType::QReal, 0x00495103,
      17, 0x80000000 | 18, 0x0049510b,
      19, QMetaType::QRectF, 0x00495001,

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

       0        // eod
};

void LessonPainter::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        LessonPainter *_t = static_cast<LessonPainter *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->lessonChanged(); break;
        case 1: _t->maximumWidthChanged(); break;
        case 2: _t->maximumHeightChanged(); break;
        case 3: _t->trainingLineCoreChanged(); break;
        case 4: _t->cursorRectangleChanged(); break;
        case 5: _t->done(); break;
        case 6: _t->reset(); break;
        case 7: _t->updateLayout(); break;
        case 8: _t->resetTrainingStatus(); break;
        case 9: _t->updateTrainingStatus(); break;
        case 10: _t->advanceToNextTrainingLine(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (LessonPainter::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&LessonPainter::lessonChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (LessonPainter::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&LessonPainter::maximumWidthChanged)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (LessonPainter::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&LessonPainter::maximumHeightChanged)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (LessonPainter::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&LessonPainter::trainingLineCoreChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (LessonPainter::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&LessonPainter::cursorRectangleChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (LessonPainter::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&LessonPainter::done)) {
                *result = 5;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        LessonPainter *_t = static_cast<LessonPainter *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< Lesson**>(_v) = _t->lesson(); break;
        case 1: *reinterpret_cast< qreal*>(_v) = _t->maximumWidth(); break;
        case 2: *reinterpret_cast< qreal*>(_v) = _t->maximumHeight(); break;
        case 3: *reinterpret_cast< TrainingLineCore**>(_v) = _t->trainingLineCore(); break;
        case 4: *reinterpret_cast< QRectF*>(_v) = _t->cursorRectangle(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        LessonPainter *_t = static_cast<LessonPainter *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setLesson(*reinterpret_cast< Lesson**>(_v)); break;
        case 1: _t->setMaximumWidth(*reinterpret_cast< qreal*>(_v)); break;
        case 2: _t->setMaximumHeight(*reinterpret_cast< qreal*>(_v)); break;
        case 3: _t->setTrainingLineCore(*reinterpret_cast< TrainingLineCore**>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
    Q_UNUSED(_a);
}

const QMetaObject LessonPainter::staticMetaObject = {
    { &QQuickPaintedItem::staticMetaObject, qt_meta_stringdata_LessonPainter.data,
      qt_meta_data_LessonPainter,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

int LessonPainter::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuickPaintedItem::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 11;
    }
#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 LessonPainter::lessonChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

// SIGNAL 1
void LessonPainter::maximumWidthChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}

// SIGNAL 2
void LessonPainter::maximumHeightChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
}

// SIGNAL 3
void LessonPainter::trainingLineCoreChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
}

// SIGNAL 4
void LessonPainter::cursorRectangleChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, Q_NULLPTR);
}

// SIGNAL 5
void LessonPainter::done()
{
    QMetaObject::activate(this, &staticMetaObject, 5, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
