/****************************************************************************
** Meta object code from reading C++ file 'qdeclarativepainteditem_p.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../../src/qtquick1-opensource-src-5.5.1/src/declarative/graphicsitems/qdeclarativepainteditem_p.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qdeclarativepainteditem_p.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.5.1. 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_QDeclarativePaintedItem_t {
    QByteArrayData data[12];
    char stringdata0[169];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QDeclarativePaintedItem_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QDeclarativePaintedItem_t qt_meta_stringdata_QDeclarativePaintedItem = {
    {
QT_MOC_LITERAL(0, 0, 23), // "QDeclarativePaintedItem"
QT_MOC_LITERAL(1, 24, 16), // "fillColorChanged"
QT_MOC_LITERAL(2, 41, 0), // ""
QT_MOC_LITERAL(3, 42, 19), // "contentsSizeChanged"
QT_MOC_LITERAL(4, 62, 20), // "contentsScaleChanged"
QT_MOC_LITERAL(5, 83, 10), // "dirtyCache"
QT_MOC_LITERAL(6, 94, 10), // "clearCache"
QT_MOC_LITERAL(7, 105, 12), // "contentsSize"
QT_MOC_LITERAL(8, 118, 9), // "fillColor"
QT_MOC_LITERAL(9, 128, 14), // "pixelCacheSize"
QT_MOC_LITERAL(10, 143, 11), // "smoothCache"
QT_MOC_LITERAL(11, 155, 13) // "contentsScale"

    },
    "QDeclarativePaintedItem\0fillColorChanged\0"
    "\0contentsSizeChanged\0contentsScaleChanged\0"
    "dirtyCache\0clearCache\0contentsSize\0"
    "fillColor\0pixelCacheSize\0smoothCache\0"
    "contentsScale"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QDeclarativePaintedItem[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,   39,    2, 0x06 /* Public */,
       3,    0,   40,    2, 0x06 /* Public */,
       4,    0,   41,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       5,    1,   42,    2, 0x09 /* Protected */,
       6,    0,   45,    2, 0x09 /* Protected */,

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

 // slots: parameters
    QMetaType::Void, QMetaType::QRect,    2,
    QMetaType::Void,

 // properties: name, type, flags
       7, QMetaType::QSize, 0x00495103,
       8, QMetaType::QColor, 0x00495103,
       9, QMetaType::Int, 0x00095103,
      10, QMetaType::Bool, 0x00095103,
      11, QMetaType::QReal, 0x00495103,

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

       0        // eod
};

void QDeclarativePaintedItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        QDeclarativePaintedItem *_t = static_cast<QDeclarativePaintedItem *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->fillColorChanged(); break;
        case 1: _t->contentsSizeChanged(); break;
        case 2: _t->contentsScaleChanged(); break;
        case 3: _t->dirtyCache((*reinterpret_cast< const QRect(*)>(_a[1]))); break;
        case 4: _t->clearCache(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (QDeclarativePaintedItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QDeclarativePaintedItem::fillColorChanged)) {
                *result = 0;
            }
        }
        {
            typedef void (QDeclarativePaintedItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QDeclarativePaintedItem::contentsSizeChanged)) {
                *result = 1;
            }
        }
        {
            typedef void (QDeclarativePaintedItem::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QDeclarativePaintedItem::contentsScaleChanged)) {
                *result = 2;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        QDeclarativePaintedItem *_t = static_cast<QDeclarativePaintedItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QSize*>(_v) = _t->contentsSize(); break;
        case 1: *reinterpret_cast< QColor*>(_v) = _t->fillColor(); break;
        case 2: *reinterpret_cast< int*>(_v) = _t->pixelCacheSize(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->smoothCache(); break;
        case 4: *reinterpret_cast< qreal*>(_v) = _t->contentsScale(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        QDeclarativePaintedItem *_t = static_cast<QDeclarativePaintedItem *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setContentsSize(*reinterpret_cast< QSize*>(_v)); break;
        case 1: _t->setFillColor(*reinterpret_cast< QColor*>(_v)); break;
        case 2: _t->setPixelCacheSize(*reinterpret_cast< int*>(_v)); break;
        case 3: _t->setSmoothCache(*reinterpret_cast< bool*>(_v)); break;
        case 4: _t->setContentsScale(*reinterpret_cast< qreal*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject QDeclarativePaintedItem::staticMetaObject = {
    { &QDeclarativeItem::staticMetaObject, qt_meta_stringdata_QDeclarativePaintedItem.data,
      qt_meta_data_QDeclarativePaintedItem,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

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

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

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

// SIGNAL 2
void QDeclarativePaintedItem::contentsScaleChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
