/****************************************************************************
** Meta object code from reading C++ file 'kpViewScrollableContainer.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/kolourpaint-17.12.3/kpViewScrollableContainer.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kpViewScrollableContainer.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_kpGrip_t {
    QByteArrayData data[12];
    char stringdata0[133];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kpGrip_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kpGrip_t qt_meta_stringdata_kpGrip = {
    {
QT_MOC_LITERAL(0, 0, 6), // "kpGrip"
QT_MOC_LITERAL(1, 7, 9), // "beganDraw"
QT_MOC_LITERAL(2, 17, 0), // ""
QT_MOC_LITERAL(3, 18, 13), // "continuedDraw"
QT_MOC_LITERAL(4, 32, 6), // "viewDX"
QT_MOC_LITERAL(5, 39, 6), // "viewDY"
QT_MOC_LITERAL(6, 46, 15), // "dueToDragScroll"
QT_MOC_LITERAL(7, 62, 13), // "cancelledDraw"
QT_MOC_LITERAL(8, 76, 9), // "endedDraw"
QT_MOC_LITERAL(9, 86, 20), // "statusMessageChanged"
QT_MOC_LITERAL(10, 107, 6), // "string"
QT_MOC_LITERAL(11, 114, 18) // "releasedAllButtons"

    },
    "kpGrip\0beganDraw\0\0continuedDraw\0viewDX\0"
    "viewDY\0dueToDragScroll\0cancelledDraw\0"
    "endedDraw\0statusMessageChanged\0string\0"
    "releasedAllButtons"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kpGrip[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   44,    2, 0x06 /* Public */,
       3,    3,   45,    2, 0x06 /* Public */,
       7,    0,   52,    2, 0x06 /* Public */,
       8,    2,   53,    2, 0x06 /* Public */,
       9,    1,   58,    2, 0x06 /* Public */,
      11,    0,   61,    2, 0x06 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Bool,    4,    5,    6,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,    4,    5,
    QMetaType::Void, QMetaType::QString,   10,
    QMetaType::Void,

       0        // eod
};

void kpGrip::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        kpGrip *_t = static_cast<kpGrip *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->beganDraw(); break;
        case 1: _t->continuedDraw((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 2: _t->cancelledDraw(); break;
        case 3: _t->endedDraw((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 4: _t->statusMessageChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 5: _t->releasedAllButtons(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (kpGrip::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpGrip::beganDraw)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (kpGrip::*_t)(int , int , bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpGrip::continuedDraw)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (kpGrip::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpGrip::cancelledDraw)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (kpGrip::*_t)(int , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpGrip::endedDraw)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (kpGrip::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpGrip::statusMessageChanged)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (kpGrip::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpGrip::releasedAllButtons)) {
                *result = 5;
                return;
            }
        }
    }
}

const QMetaObject kpGrip::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_kpGrip.data,
      qt_meta_data_kpGrip,  qt_static_metacall, nullptr, nullptr}
};


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

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

int kpGrip::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 6)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 6;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 6)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 6;
    }
    return _id;
}

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

// SIGNAL 1
void kpGrip::continuedDraw(int _t1, int _t2, bool _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

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

// SIGNAL 3
void kpGrip::endedDraw(int _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void kpGrip::statusMessageChanged(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void kpGrip::releasedAllButtons()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
struct qt_meta_stringdata_kpViewScrollableContainer_t {
    QByteArrayData data[29];
    char stringdata0[436];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kpViewScrollableContainer_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kpViewScrollableContainer_t qt_meta_stringdata_kpViewScrollableContainer = {
    {
QT_MOC_LITERAL(0, 0, 25), // "kpViewScrollableContainer"
QT_MOC_LITERAL(1, 26, 13), // "contentsMoved"
QT_MOC_LITERAL(2, 40, 0), // ""
QT_MOC_LITERAL(3, 41, 14), // "beganDocResize"
QT_MOC_LITERAL(4, 56, 18), // "continuedDocResize"
QT_MOC_LITERAL(5, 75, 4), // "size"
QT_MOC_LITERAL(6, 80, 18), // "cancelledDocResize"
QT_MOC_LITERAL(7, 99, 14), // "endedDocResize"
QT_MOC_LITERAL(8, 114, 20), // "statusMessageChanged"
QT_MOC_LITERAL(9, 135, 6), // "string"
QT_MOC_LITERAL(10, 142, 7), // "resized"
QT_MOC_LITERAL(11, 150, 24), // "recalculateStatusMessage"
QT_MOC_LITERAL(12, 175, 11), // "updateGrips"
QT_MOC_LITERAL(13, 187, 15), // "beginDragScroll"
QT_MOC_LITERAL(14, 203, 9), // "zoomLevel"
QT_MOC_LITERAL(15, 213, 5), // "bool*"
QT_MOC_LITERAL(16, 219, 12), // "didSomething"
QT_MOC_LITERAL(17, 232, 13), // "endDragScroll"
QT_MOC_LITERAL(18, 246, 17), // "slotGripBeganDraw"
QT_MOC_LITERAL(19, 264, 21), // "slotGripContinuedDraw"
QT_MOC_LITERAL(20, 286, 6), // "viewDX"
QT_MOC_LITERAL(21, 293, 6), // "viewDY"
QT_MOC_LITERAL(22, 300, 15), // "dueToScrollView"
QT_MOC_LITERAL(23, 316, 21), // "slotGripCancelledDraw"
QT_MOC_LITERAL(24, 338, 17), // "slotGripEndedDraw"
QT_MOC_LITERAL(25, 356, 28), // "slotGripStatusMessageChanged"
QT_MOC_LITERAL(26, 385, 17), // "slotContentsMoved"
QT_MOC_LITERAL(27, 403, 17), // "slotViewDestroyed"
QT_MOC_LITERAL(28, 421, 14) // "slotDragScroll"

    },
    "kpViewScrollableContainer\0contentsMoved\0"
    "\0beganDocResize\0continuedDocResize\0"
    "size\0cancelledDocResize\0endedDocResize\0"
    "statusMessageChanged\0string\0resized\0"
    "recalculateStatusMessage\0updateGrips\0"
    "beginDragScroll\0zoomLevel\0bool*\0"
    "didSomething\0endDragScroll\0slotGripBeganDraw\0"
    "slotGripContinuedDraw\0viewDX\0viewDY\0"
    "dueToScrollView\0slotGripCancelledDraw\0"
    "slotGripEndedDraw\0slotGripStatusMessageChanged\0"
    "slotContentsMoved\0slotViewDestroyed\0"
    "slotDragScroll"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kpViewScrollableContainer[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,  119,    2, 0x06 /* Public */,
       3,    0,  120,    2, 0x06 /* Public */,
       4,    1,  121,    2, 0x06 /* Public */,
       6,    0,  124,    2, 0x06 /* Public */,
       7,    1,  125,    2, 0x06 /* Public */,
       8,    1,  128,    2, 0x06 /* Public */,
      10,    0,  131,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      11,    0,  132,    2, 0x0a /* Public */,
      12,    0,  133,    2, 0x0a /* Public */,
      13,    2,  134,    2, 0x0a /* Public */,
      13,    1,  139,    2, 0x0a /* Public */,
      17,    0,  142,    2, 0x0a /* Public */,
      18,    0,  143,    2, 0x08 /* Private */,
      19,    3,  144,    2, 0x08 /* Private */,
      23,    0,  151,    2, 0x08 /* Private */,
      24,    2,  152,    2, 0x08 /* Private */,
      25,    1,  157,    2, 0x08 /* Private */,
      26,    0,  160,    2, 0x08 /* Private */,
      27,    0,  161,    2, 0x08 /* Private */,
      28,    1,  162,    2, 0x08 /* Private */,
      28,    0,  165,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QSize,    5,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QSize,    5,
    QMetaType::Void, QMetaType::QString,    9,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Bool, QMetaType::Int, 0x80000000 | 15,   14,   16,
    QMetaType::Bool, QMetaType::Int,   14,
    QMetaType::Bool,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Bool,   20,   21,   22,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   20,   21,
    QMetaType::Void, QMetaType::QString,    9,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Bool, 0x80000000 | 15,   16,
    QMetaType::Bool,

       0        // eod
};

void kpViewScrollableContainer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        kpViewScrollableContainer *_t = static_cast<kpViewScrollableContainer *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->contentsMoved(); break;
        case 1: _t->beganDocResize(); break;
        case 2: _t->continuedDocResize((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
        case 3: _t->cancelledDocResize(); break;
        case 4: _t->endedDocResize((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
        case 5: _t->statusMessageChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 6: _t->resized(); break;
        case 7: _t->recalculateStatusMessage(); break;
        case 8: _t->updateGrips(); break;
        case 9: { bool _r = _t->beginDragScroll((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< bool*(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 10: { bool _r = _t->beginDragScroll((*reinterpret_cast< int(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 11: { bool _r = _t->endDragScroll();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 12: _t->slotGripBeganDraw(); break;
        case 13: _t->slotGripContinuedDraw((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
        case 14: _t->slotGripCancelledDraw(); break;
        case 15: _t->slotGripEndedDraw((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 16: _t->slotGripStatusMessageChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 17: _t->slotContentsMoved(); break;
        case 18: _t->slotViewDestroyed(); break;
        case 19: { bool _r = _t->slotDragScroll((*reinterpret_cast< bool*(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        case 20: { bool _r = _t->slotDragScroll();
            if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (kpViewScrollableContainer::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpViewScrollableContainer::contentsMoved)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (kpViewScrollableContainer::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpViewScrollableContainer::beganDocResize)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (kpViewScrollableContainer::*_t)(const QSize & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpViewScrollableContainer::continuedDocResize)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (kpViewScrollableContainer::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpViewScrollableContainer::cancelledDocResize)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (kpViewScrollableContainer::*_t)(const QSize & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpViewScrollableContainer::endedDocResize)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (kpViewScrollableContainer::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpViewScrollableContainer::statusMessageChanged)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (kpViewScrollableContainer::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&kpViewScrollableContainer::resized)) {
                *result = 6;
                return;
            }
        }
    }
}

const QMetaObject kpViewScrollableContainer::staticMetaObject = {
    { &QScrollArea::staticMetaObject, qt_meta_stringdata_kpViewScrollableContainer.data,
      qt_meta_data_kpViewScrollableContainer,  qt_static_metacall, nullptr, nullptr}
};


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

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

int kpViewScrollableContainer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QScrollArea::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 21)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 21;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 21)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 21;
    }
    return _id;
}

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

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

// SIGNAL 2
void kpViewScrollableContainer::continuedDocResize(const QSize & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

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

// SIGNAL 4
void kpViewScrollableContainer::endedDocResize(const QSize & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}

// SIGNAL 5
void kpViewScrollableContainer::statusMessageChanged(const QString & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void kpViewScrollableContainer::resized()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
