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

#include "../../../../src/kratingwidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'kratingwidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.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
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_KRatingWidget_t {
    QByteArrayData data[28];
    char stringdata0[316];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_KRatingWidget_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_KRatingWidget_t qt_meta_stringdata_KRatingWidget = {
    {
QT_MOC_LITERAL(0, 0, 13), // "KRatingWidget"
QT_MOC_LITERAL(1, 14, 13), // "ratingChanged"
QT_MOC_LITERAL(2, 28, 0), // ""
QT_MOC_LITERAL(3, 29, 6), // "rating"
QT_MOC_LITERAL(4, 36, 9), // "setRating"
QT_MOC_LITERAL(5, 46, 12), // "setMaxRating"
QT_MOC_LITERAL(6, 59, 3), // "max"
QT_MOC_LITERAL(7, 63, 19), // "setHalfStepsEnabled"
QT_MOC_LITERAL(8, 83, 7), // "enabled"
QT_MOC_LITERAL(9, 91, 21), // "setOnlyPaintFullSteps"
QT_MOC_LITERAL(10, 113, 10), // "setSpacing"
QT_MOC_LITERAL(11, 124, 12), // "setAlignment"
QT_MOC_LITERAL(12, 137, 13), // "Qt::Alignment"
QT_MOC_LITERAL(13, 151, 5), // "align"
QT_MOC_LITERAL(14, 157, 18), // "setLayoutDirection"
QT_MOC_LITERAL(15, 176, 19), // "Qt::LayoutDirection"
QT_MOC_LITERAL(16, 196, 9), // "direction"
QT_MOC_LITERAL(17, 206, 7), // "setIcon"
QT_MOC_LITERAL(18, 214, 4), // "icon"
QT_MOC_LITERAL(19, 219, 15), // "setCustomPixmap"
QT_MOC_LITERAL(20, 235, 6), // "pixmap"
QT_MOC_LITERAL(21, 242, 9), // "setPixmap"
QT_MOC_LITERAL(22, 252, 13), // "setPixmapSize"
QT_MOC_LITERAL(23, 266, 4), // "size"
QT_MOC_LITERAL(24, 271, 9), // "maxRating"
QT_MOC_LITERAL(25, 281, 9), // "alignment"
QT_MOC_LITERAL(26, 291, 16), // "halfStepsEnabled"
QT_MOC_LITERAL(27, 308, 7) // "spacing"

    },
    "KRatingWidget\0ratingChanged\0\0rating\0"
    "setRating\0setMaxRating\0max\0"
    "setHalfStepsEnabled\0enabled\0"
    "setOnlyPaintFullSteps\0setSpacing\0"
    "setAlignment\0Qt::Alignment\0align\0"
    "setLayoutDirection\0Qt::LayoutDirection\0"
    "direction\0setIcon\0icon\0setCustomPixmap\0"
    "pixmap\0setPixmap\0setPixmapSize\0size\0"
    "maxRating\0alignment\0halfStepsEnabled\0"
    "spacing"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_KRatingWidget[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,   89,    2, 0x06 /* Public */,
       1,    1,   92,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       4,    1,   95,    2, 0x0a /* Public */,
       4,    1,   98,    2, 0x0a /* Public */,
       5,    1,  101,    2, 0x0a /* Public */,
       5,    1,  104,    2, 0x0a /* Public */,
       7,    1,  107,    2, 0x0a /* Public */,
       9,    1,  110,    2, 0x0a /* Public */,
      10,    1,  113,    2, 0x0a /* Public */,
      11,    1,  116,    2, 0x0a /* Public */,
      14,    1,  119,    2, 0x0a /* Public */,
      17,    1,  122,    2, 0x0a /* Public */,
      19,    1,  125,    2, 0x0a /* Public */,
      21,    1,  128,    2, 0x0a /* Public */,
      22,    1,  131,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void, QMetaType::UInt,    3,
    QMetaType::Void, QMetaType::Int,    3,

 // slots: parameters
    QMetaType::Void, QMetaType::Int,    3,
    QMetaType::Void, QMetaType::UInt,    3,
    QMetaType::Void, QMetaType::Int,    6,
    QMetaType::Void, QMetaType::UInt,    6,
    QMetaType::Void, QMetaType::Bool,    8,
    QMetaType::Void, QMetaType::Bool,    2,
    QMetaType::Void, QMetaType::Int,    2,
    QMetaType::Void, 0x80000000 | 12,   13,
    QMetaType::Void, 0x80000000 | 15,   16,
    QMetaType::Void, QMetaType::QIcon,   18,
    QMetaType::Void, QMetaType::QPixmap,   20,
    QMetaType::Void, QMetaType::QPixmap,    2,
    QMetaType::Void, QMetaType::Int,   23,

 // properties: name, type, flags
       3, QMetaType::Int, 0x00095103,
      24, QMetaType::Int, 0x00095103,
      25, 0x80000000 | 12, 0x0009510b,
      26, QMetaType::Bool, 0x00095103,
      27, QMetaType::Int, 0x00095103,
      18, QMetaType::QIcon, 0x00095103,

       0        // eod
};

void KRatingWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        KRatingWidget *_t = static_cast<KRatingWidget *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->ratingChanged((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 1: _t->ratingChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: _t->setRating((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 3: _t->setRating((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 4: _t->setMaxRating((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 5: _t->setMaxRating((*reinterpret_cast< uint(*)>(_a[1]))); break;
        case 6: _t->setHalfStepsEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 7: _t->setOnlyPaintFullSteps((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 8: _t->setSpacing((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 9: _t->setAlignment((*reinterpret_cast< Qt::Alignment(*)>(_a[1]))); break;
        case 10: _t->setLayoutDirection((*reinterpret_cast< Qt::LayoutDirection(*)>(_a[1]))); break;
        case 11: _t->setIcon((*reinterpret_cast< const QIcon(*)>(_a[1]))); break;
        case 12: _t->setCustomPixmap((*reinterpret_cast< const QPixmap(*)>(_a[1]))); break;
        case 13: _t->setPixmap((*reinterpret_cast< const QPixmap(*)>(_a[1]))); break;
        case 14: _t->setPixmapSize((*reinterpret_cast< int(*)>(_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 (KRatingWidget::*_t)(unsigned int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KRatingWidget::ratingChanged)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (KRatingWidget::*_t)(int );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KRatingWidget::ratingChanged)) {
                *result = 1;
                return;
            }
        }
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        KRatingWidget *_t = static_cast<KRatingWidget *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = _t->rating(); break;
        case 1: *reinterpret_cast< int*>(_v) = _t->maxRating(); break;
        case 2: *reinterpret_cast< Qt::Alignment*>(_v) = _t->alignment(); break;
        case 3: *reinterpret_cast< bool*>(_v) = _t->halfStepsEnabled(); break;
        case 4: *reinterpret_cast< int*>(_v) = _t->spacing(); break;
        case 5: *reinterpret_cast< QIcon*>(_v) = _t->icon(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        KRatingWidget *_t = static_cast<KRatingWidget *>(_o);
        Q_UNUSED(_t)
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setRating(*reinterpret_cast< int*>(_v)); break;
        case 1: _t->setMaxRating(*reinterpret_cast< int*>(_v)); break;
        case 2: _t->setAlignment(*reinterpret_cast< Qt::Alignment*>(_v)); break;
        case 3: _t->setHalfStepsEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 4: _t->setSpacing(*reinterpret_cast< int*>(_v)); break;
        case 5: _t->setIcon(*reinterpret_cast< QIcon*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

const QMetaObject KRatingWidget::staticMetaObject = {
    { &QFrame::staticMetaObject, qt_meta_stringdata_KRatingWidget.data,
      qt_meta_data_KRatingWidget,  qt_static_metacall, nullptr, nullptr}
};


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

void *KRatingWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_KRatingWidget.stringdata0))
        return static_cast<void*>(const_cast< KRatingWidget*>(this));
    return QFrame::qt_metacast(_clname);
}

int KRatingWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QFrame::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 15)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 15)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 15;
    }
#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 -= 6;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 6;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 6;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void KRatingWidget::ratingChanged(unsigned int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void KRatingWidget::ratingChanged(int _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
