/****************************************************************************
** Meta object code from reading C++ file 'kpTool.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/tools/kpTool.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kpTool.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_kpTool_t {
    QByteArrayData data[38];
    char stringdata0[611];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_kpTool_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_kpTool_t qt_meta_stringdata_kpTool = {
    {
QT_MOC_LITERAL(0, 0, 6), // "kpTool"
QT_MOC_LITERAL(1, 7, 20), // "actionToolTipChanged"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 9), // "beganDraw"
QT_MOC_LITERAL(4, 39, 5), // "point"
QT_MOC_LITERAL(5, 45, 19), // "movedAndAboutToDraw"
QT_MOC_LITERAL(6, 65, 12), // "currentPoint"
QT_MOC_LITERAL(7, 78, 9), // "lastPoint"
QT_MOC_LITERAL(8, 88, 9), // "zoomLevel"
QT_MOC_LITERAL(9, 98, 5), // "bool*"
QT_MOC_LITERAL(10, 104, 8), // "scrolled"
QT_MOC_LITERAL(11, 113, 9), // "endedDraw"
QT_MOC_LITERAL(12, 123, 14), // "cancelledShape"
QT_MOC_LITERAL(13, 138, 15), // "actionActivated"
QT_MOC_LITERAL(14, 154, 18), // "userMessageChanged"
QT_MOC_LITERAL(15, 173, 11), // "userMessage"
QT_MOC_LITERAL(16, 185, 22), // "userShapePointsChanged"
QT_MOC_LITERAL(17, 208, 10), // "startPoint"
QT_MOC_LITERAL(18, 219, 8), // "endPoint"
QT_MOC_LITERAL(19, 228, 20), // "userShapeSizeChanged"
QT_MOC_LITERAL(20, 249, 4), // "size"
QT_MOC_LITERAL(21, 254, 5), // "width"
QT_MOC_LITERAL(22, 260, 6), // "height"
QT_MOC_LITERAL(23, 267, 30), // "somethingBelowTheCursorChanged"
QT_MOC_LITERAL(24, 298, 25), // "slotColorsSwappedInternal"
QT_MOC_LITERAL(25, 324, 7), // "kpColor"
QT_MOC_LITERAL(26, 332, 18), // "newForegroundColor"
QT_MOC_LITERAL(27, 351, 18), // "newBackgroundColor"
QT_MOC_LITERAL(28, 370, 34), // "slotForegroundColorChangedInt..."
QT_MOC_LITERAL(29, 405, 5), // "color"
QT_MOC_LITERAL(30, 411, 34), // "slotBackgroundColorChangedInt..."
QT_MOC_LITERAL(31, 446, 34), // "slotColorSimilarityChangedInt..."
QT_MOC_LITERAL(32, 481, 10), // "similarity"
QT_MOC_LITERAL(33, 492, 19), // "processedSimilarity"
QT_MOC_LITERAL(34, 512, 17), // "slotColorsSwapped"
QT_MOC_LITERAL(35, 530, 26), // "slotForegroundColorChanged"
QT_MOC_LITERAL(36, 557, 26), // "slotBackgroundColorChanged"
QT_MOC_LITERAL(37, 584, 26) // "slotColorSimilarityChanged"

    },
    "kpTool\0actionToolTipChanged\0\0beganDraw\0"
    "point\0movedAndAboutToDraw\0currentPoint\0"
    "lastPoint\0zoomLevel\0bool*\0scrolled\0"
    "endedDraw\0cancelledShape\0actionActivated\0"
    "userMessageChanged\0userMessage\0"
    "userShapePointsChanged\0startPoint\0"
    "endPoint\0userShapeSizeChanged\0size\0"
    "width\0height\0somethingBelowTheCursorChanged\0"
    "slotColorsSwappedInternal\0kpColor\0"
    "newForegroundColor\0newBackgroundColor\0"
    "slotForegroundColorChangedInternal\0"
    "color\0slotBackgroundColorChangedInternal\0"
    "slotColorSimilarityChangedInternal\0"
    "similarity\0processedSimilarity\0"
    "slotColorsSwapped\0slotForegroundColorChanged\0"
    "slotBackgroundColorChanged\0"
    "slotColorSimilarityChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_kpTool[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,  119,    2, 0x06 /* Public */,
       3,    1,  120,    2, 0x06 /* Public */,
       5,    4,  123,    2, 0x06 /* Public */,
      11,    1,  132,    2, 0x06 /* Public */,
      12,    1,  135,    2, 0x06 /* Public */,
      13,    0,  138,    2, 0x06 /* Public */,
      14,    1,  139,    2, 0x06 /* Public */,
      16,    2,  142,    2, 0x06 /* Public */,
      16,    1,  147,    2, 0x26 /* Public | MethodCloned */,
      16,    0,  150,    2, 0x26 /* Public | MethodCloned */,
      19,    1,  151,    2, 0x06 /* Public */,
      19,    2,  154,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      23,    0,  159,    2, 0x0a /* Public */,
      24,    2,  160,    2, 0x09 /* Protected */,
      28,    1,  165,    2, 0x09 /* Protected */,
      30,    1,  168,    2, 0x09 /* Protected */,
      31,    2,  171,    2, 0x09 /* Protected */,
      34,    2,  176,    2, 0x09 /* Protected */,
      35,    1,  181,    2, 0x09 /* Protected */,
      36,    1,  184,    2, 0x09 /* Protected */,
      37,    2,  187,    2, 0x09 /* Protected */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QPoint,    4,
    QMetaType::Void, QMetaType::QPoint, QMetaType::QPoint, QMetaType::Int, 0x80000000 | 9,    6,    7,    8,   10,
    QMetaType::Void, QMetaType::QPoint,    4,
    QMetaType::Void, QMetaType::QPoint,    4,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QString,   15,
    QMetaType::Void, QMetaType::QPoint, QMetaType::QPoint,   17,   18,
    QMetaType::Void, QMetaType::QPoint,   17,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QSize,   20,
    QMetaType::Void, QMetaType::Int, QMetaType::Int,   21,   22,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, 0x80000000 | 25, 0x80000000 | 25,   26,   27,
    QMetaType::Void, 0x80000000 | 25,   29,
    QMetaType::Void, 0x80000000 | 25,   29,
    QMetaType::Void, QMetaType::Double, QMetaType::Int,   32,   33,
    QMetaType::Void, 0x80000000 | 25, 0x80000000 | 25,    2,    2,
    QMetaType::Void, 0x80000000 | 25,    2,
    QMetaType::Void, 0x80000000 | 25,    2,
    QMetaType::Void, QMetaType::Double, QMetaType::Int,    2,    2,

       0        // eod
};

void kpTool::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        kpTool *_t = static_cast<kpTool *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->actionToolTipChanged(); break;
        case 1: _t->beganDraw((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 2: _t->movedAndAboutToDraw((*reinterpret_cast< const QPoint(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< bool*(*)>(_a[4]))); break;
        case 3: _t->endedDraw((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 4: _t->cancelledShape((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 5: _t->actionActivated(); break;
        case 6: _t->userMessageChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
        case 7: _t->userShapePointsChanged((*reinterpret_cast< const QPoint(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 8: _t->userShapePointsChanged((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 9: _t->userShapePointsChanged(); break;
        case 10: _t->userShapeSizeChanged((*reinterpret_cast< const QSize(*)>(_a[1]))); break;
        case 11: _t->userShapeSizeChanged((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 12: _t->somethingBelowTheCursorChanged(); break;
        case 13: _t->slotColorsSwappedInternal((*reinterpret_cast< const kpColor(*)>(_a[1])),(*reinterpret_cast< const kpColor(*)>(_a[2]))); break;
        case 14: _t->slotForegroundColorChangedInternal((*reinterpret_cast< const kpColor(*)>(_a[1]))); break;
        case 15: _t->slotBackgroundColorChangedInternal((*reinterpret_cast< const kpColor(*)>(_a[1]))); break;
        case 16: _t->slotColorSimilarityChangedInternal((*reinterpret_cast< double(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 17: _t->slotColorsSwapped((*reinterpret_cast< const kpColor(*)>(_a[1])),(*reinterpret_cast< const kpColor(*)>(_a[2]))); break;
        case 18: _t->slotForegroundColorChanged((*reinterpret_cast< const kpColor(*)>(_a[1]))); break;
        case 19: _t->slotBackgroundColorChanged((*reinterpret_cast< const kpColor(*)>(_a[1]))); break;
        case 20: _t->slotColorSimilarityChanged((*reinterpret_cast< double(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (kpTool::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpTool::actionToolTipChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (kpTool::*_t)(const QPoint & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpTool::beganDraw)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (kpTool::*_t)(const QPoint & , const QPoint & , int , bool * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpTool::movedAndAboutToDraw)) {
                *result = 2;
                return;
            }
        }
        {
            typedef void (kpTool::*_t)(const QPoint & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpTool::endedDraw)) {
                *result = 3;
                return;
            }
        }
        {
            typedef void (kpTool::*_t)(const QPoint & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpTool::cancelledShape)) {
                *result = 4;
                return;
            }
        }
        {
            typedef void (kpTool::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpTool::actionActivated)) {
                *result = 5;
                return;
            }
        }
        {
            typedef void (kpTool::*_t)(const QString & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpTool::userMessageChanged)) {
                *result = 6;
                return;
            }
        }
        {
            typedef void (kpTool::*_t)(const QPoint & , const QPoint & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpTool::userShapePointsChanged)) {
                *result = 7;
                return;
            }
        }
        {
            typedef void (kpTool::*_t)(const QSize & );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpTool::userShapeSizeChanged)) {
                *result = 10;
                return;
            }
        }
        {
            typedef void (kpTool::*_t)(int , int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&kpTool::userShapeSizeChanged)) {
                *result = 11;
                return;
            }
        }
    }
}

const QMetaObject kpTool::staticMetaObject = {
    { &QObject::staticMetaObject, qt_meta_stringdata_kpTool.data,
      qt_meta_data_kpTool,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

int kpTool::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 < 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 kpTool::actionToolTipChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
}

// SIGNAL 1
void kpTool::beganDraw(const QPoint & _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void kpTool::movedAndAboutToDraw(const QPoint & _t1, const QPoint & _t2, int _t3, bool * _t4)
{
    void *_a[] = { Q_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)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

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

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

// SIGNAL 5
void kpTool::actionActivated()
{
    QMetaObject::activate(this, &staticMetaObject, 5, Q_NULLPTR);
}

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

// SIGNAL 7
void kpTool::userShapePointsChanged(const QPoint & _t1, const QPoint & _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, 7, _a);
}

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

// SIGNAL 11
void kpTool::userShapeSizeChanged(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, 11, _a);
}
QT_END_MOC_NAMESPACE
