/****************************************************************************
** Meta object code from reading C++ file 'kpDocument.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/kolourpaint-17.04.3/document/kpDocument.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kpDocument.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_kpDocument_t {
    QByteArrayData data[17];
    char stringdata0[204];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kpDocument_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kpDocument_t qt_meta_stringdata_kpDocument = {
    {
QT_MOC_LITERAL(0, 0, 10), // "kpDocument"
QT_MOC_LITERAL(1, 11, 14), // "documentOpened"
QT_MOC_LITERAL(2, 26, 0), // ""
QT_MOC_LITERAL(3, 27, 13), // "documentSaved"
QT_MOC_LITERAL(4, 41, 16), // "documentModified"
QT_MOC_LITERAL(5, 58, 15), // "contentsChanged"
QT_MOC_LITERAL(6, 74, 4), // "rect"
QT_MOC_LITERAL(7, 79, 11), // "sizeChanged"
QT_MOC_LITERAL(8, 91, 8), // "newWidth"
QT_MOC_LITERAL(9, 100, 9), // "newHeight"
QT_MOC_LITERAL(10, 110, 7), // "newSize"
QT_MOC_LITERAL(11, 118, 16), // "selectionEnabled"
QT_MOC_LITERAL(12, 135, 2), // "on"
QT_MOC_LITERAL(13, 138, 22), // "selectionIsTextChanged"
QT_MOC_LITERAL(14, 161, 6), // "isText"
QT_MOC_LITERAL(15, 168, 19), // "slotContentsChanged"
QT_MOC_LITERAL(16, 188, 15) // "slotSizeChanged"

    },
    "kpDocument\0documentOpened\0\0documentSaved\0"
    "documentModified\0contentsChanged\0rect\0"
    "sizeChanged\0newWidth\0newHeight\0newSize\0"
    "selectionEnabled\0on\0selectionIsTextChanged\0"
    "isText\0slotContentsChanged\0slotSizeChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kpDocument[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      11,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       8,       // 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,    1,   72,    2, 0x06 /* Public */,
       7,    2,   75,    2, 0x06 /* Public */,
       7,    1,   80,    2, 0x06 /* Public */,
      11,    1,   83,    2, 0x06 /* Public */,
      13,    1,   86,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      15,    1,   89,    2, 0x0a /* Public */,
      16,    2,   92,    2, 0x0a /* Public */,
      16,    1,   97,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QRect,    6,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    8,    9,
    QMetaType::Void, QMetaType::QSize,   10,
    QMetaType::Void, QMetaType::Bool,   12,
    QMetaType::Void, QMetaType::Bool,   14,

 // slots: parameters
    QMetaType::Void, QMetaType::QRect,    6,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    8,    9,
    QMetaType::Void, QMetaType::QSize,   10,

       0        // eod
};

void kpDocument::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        kpDocument *_t = static_cast<kpDocument *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->documentOpened(); break;
        case 1: _t->documentSaved(); break;
        case 2: _t->documentModified(); break;
        case 3: _t->contentsChanged((*reinterpret_cast< const QRect(*)>(_a[1]))); break;
        case 4: _t->sizeChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 5: _t->sizeChanged((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
        case 6: _t->selectionEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 7: _t->selectionIsTextChanged((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 8: _t->slotContentsChanged((*reinterpret_cast< const QRect(*)>(_a[1]))); break;
        case 9: _t->slotSizeChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 10: _t->slotSizeChanged((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (kpDocument::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpDocument::documentOpened)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (kpDocument::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpDocument::documentSaved)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (kpDocument::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpDocument::documentModified)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (kpDocument::*_t)(const QRect & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpDocument::contentsChanged)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (kpDocument::*_t)(int , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpDocument::sizeChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (kpDocument::*_t)(const QSize & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpDocument::sizeChanged)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (kpDocument::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpDocument::selectionEnabled)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (kpDocument::*_t)(bool );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpDocument::selectionIsTextChanged)) {
                *result = 7;
                return;
            }
        }
    }
}

const QMetaObject kpDocument::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_kpDocument.data,
      qt_meta_data_kpDocument,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

int kpDocument::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 < 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;
    }
    return _id;
}

// SIGNAL 0
void kpDocument::documentOpened()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

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

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

// SIGNAL 3
void kpDocument::contentsChanged(const QRect & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void kpDocument::sizeChanged(int _t1, int _t2)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void kpDocument::sizeChanged(const QSize & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void kpDocument::selectionEnabled(bool _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}

// SIGNAL 7
void kpDocument::selectionIsTextChanged(bool _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 7, _a);
}
QT_END_MOC_NAMESPACE
