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

#include "../../../../../amarok-3.3.3/src/context/qml_plugin/src/RatingItem.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'RatingItem.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN10RatingItemE_t {};
} // unnamed namespace

template <> constexpr inline auto RatingItem::qt_create_metaobjectdata<qt_meta_tag_ZN10RatingItemE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "RatingItem",
        "ratingChanged",
        "",
        "hoverRatingChanged",
        "maxRatingChanged",
        "spacingChanged",
        "layoutDirectionChanged",
        "alignmentChanged",
        "halfStepsEnabledChanged",
        "iconChanged",
        "clicked",
        "newRating",
        "setRating",
        "rating",
        "setMaxRating",
        "max",
        "setHalfStepsEnabled",
        "enabled",
        "setSpacing",
        "setAlignment",
        "Qt::Alignment",
        "align",
        "setLayoutDirection",
        "Qt::LayoutDirection",
        "direction",
        "setIcon",
        "iconName",
        "hoverRating",
        "maxRating",
        "spacing",
        "alignment",
        "layoutDirection",
        "halfStepsEnabled",
        "icon"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'ratingChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'hoverRatingChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'maxRatingChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'spacingChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'layoutDirectionChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'alignmentChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'halfStepsEnabledChanged'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'iconChanged'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'clicked'
        QtMocHelpers::SignalData<void(int)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 11 },
        }}),
        // Slot 'setRating'
        QtMocHelpers::SlotData<void(int)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 13 },
        }}),
        // Slot 'setMaxRating'
        QtMocHelpers::SlotData<void(int)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 15 },
        }}),
        // Slot 'setHalfStepsEnabled'
        QtMocHelpers::SlotData<void(bool)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 17 },
        }}),
        // Slot 'setSpacing'
        QtMocHelpers::SlotData<void(int)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'setAlignment'
        QtMocHelpers::SlotData<void(Qt::Alignment)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 20, 21 },
        }}),
        // Slot 'setLayoutDirection'
        QtMocHelpers::SlotData<void(Qt::LayoutDirection)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 23, 24 },
        }}),
        // Slot 'setIcon'
        QtMocHelpers::SlotData<void(const QString &)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 26 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'rating'
        QtMocHelpers::PropertyData<int>(13, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'hoverRating'
        QtMocHelpers::PropertyData<int>(27, QMetaType::Int, QMC::DefaultPropertyFlags, 1),
        // property 'maxRating'
        QtMocHelpers::PropertyData<int>(28, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'spacing'
        QtMocHelpers::PropertyData<int>(29, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'alignment'
        QtMocHelpers::PropertyData<Qt::Alignment>(30, 0x80000000 | 20, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 5),
        // property 'layoutDirection'
        QtMocHelpers::PropertyData<Qt::LayoutDirection>(31, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 4),
        // property 'halfStepsEnabled'
        QtMocHelpers::PropertyData<bool>(32, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
        // property 'icon'
        QtMocHelpers::PropertyData<QString>(33, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<RatingItem, qt_meta_tag_ZN10RatingItemE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject RatingItem::staticMetaObject = { {
    QMetaObject::SuperData::link<QQuickPaintedItem::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10RatingItemE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10RatingItemE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10RatingItemE_t>.metaTypes,
    nullptr
} };

void RatingItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<RatingItem *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->ratingChanged(); break;
        case 1: _t->hoverRatingChanged(); break;
        case 2: _t->maxRatingChanged(); break;
        case 3: _t->spacingChanged(); break;
        case 4: _t->layoutDirectionChanged(); break;
        case 5: _t->alignmentChanged(); break;
        case 6: _t->halfStepsEnabledChanged(); break;
        case 7: _t->iconChanged(); break;
        case 8: _t->clicked((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 9: _t->setRating((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 10: _t->setMaxRating((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 11: _t->setHalfStepsEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->setSpacing((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 13: _t->setAlignment((*reinterpret_cast<std::add_pointer_t<Qt::Alignment>>(_a[1]))); break;
        case 14: _t->setLayoutDirection((*reinterpret_cast<std::add_pointer_t<Qt::LayoutDirection>>(_a[1]))); break;
        case 15: _t->setIcon((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (RatingItem::*)()>(_a, &RatingItem::ratingChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (RatingItem::*)()>(_a, &RatingItem::hoverRatingChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (RatingItem::*)()>(_a, &RatingItem::maxRatingChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (RatingItem::*)()>(_a, &RatingItem::spacingChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (RatingItem::*)()>(_a, &RatingItem::layoutDirectionChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (RatingItem::*)()>(_a, &RatingItem::alignmentChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (RatingItem::*)()>(_a, &RatingItem::halfStepsEnabledChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (RatingItem::*)()>(_a, &RatingItem::iconChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (RatingItem::*)(int )>(_a, &RatingItem::clicked, 8))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<int*>(_v) = _t->rating(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->hoverRating(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->maxRating(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->spacing(); break;
        case 4: *reinterpret_cast<Qt::Alignment*>(_v) = _t->alignment(); break;
        case 5: *reinterpret_cast<Qt::LayoutDirection*>(_v) = _t->layoutDirection(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->halfStepsEnabled(); break;
        case 7: *reinterpret_cast<QString*>(_v) = _t->icon(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setRating(*reinterpret_cast<int*>(_v)); break;
        case 2: _t->setMaxRating(*reinterpret_cast<int*>(_v)); break;
        case 3: _t->setSpacing(*reinterpret_cast<int*>(_v)); break;
        case 4: _t->setAlignment(*reinterpret_cast<Qt::Alignment*>(_v)); break;
        case 5: _t->setLayoutDirection(*reinterpret_cast<Qt::LayoutDirection*>(_v)); break;
        case 6: _t->setHalfStepsEnabled(*reinterpret_cast<bool*>(_v)); break;
        case 7: _t->setIcon(*reinterpret_cast<QString*>(_v)); break;
        default: break;
        }
    }
}

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

void *RatingItem::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10RatingItemE_t>.strings))
        return static_cast<void*>(this);
    return QQuickPaintedItem::qt_metacast(_clname);
}

int RatingItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuickPaintedItem::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 16)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 16;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    return _id;
}

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

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

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

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

// SIGNAL 4
void RatingItem::layoutDirectionChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void RatingItem::alignmentChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void RatingItem::halfStepsEnabledChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void RatingItem::iconChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void RatingItem::clicked(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}
QT_WARNING_POP
