/****************************************************************************
** Meta object code from reading C++ file 'PieChart.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 "../../../../kquickcharts-6.26.0/src/PieChart.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 'PieChart.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_ZN8PieChartE_t {};
} // unnamed namespace

template <> constexpr inline auto PieChart::qt_create_metaobjectdata<qt_meta_tag_ZN8PieChartE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PieChart",
        "QML.Element",
        "auto",
        "filledChanged",
        "",
        "thicknessChanged",
        "spacingChanged",
        "backgroundColorChanged",
        "fromAngleChanged",
        "toAngleChanged",
        "smoothEndsChanged",
        "range",
        "RangeGroup*",
        "filled",
        "thickness",
        "spacing",
        "backgroundColor",
        "QColor",
        "fromAngle",
        "toAngle",
        "smoothEnds"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'filledChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'thicknessChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'spacingChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'backgroundColorChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'fromAngleChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'toAngleChanged'
        QtMocHelpers::SignalData<void()>(9, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'smoothEndsChanged'
        QtMocHelpers::SignalData<void()>(10, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'range'
        QtMocHelpers::PropertyData<RangeGroup*>(11, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'filled'
        QtMocHelpers::PropertyData<bool>(13, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'thickness'
        QtMocHelpers::PropertyData<qreal>(14, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'spacing'
        QtMocHelpers::PropertyData<qreal>(15, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'backgroundColor'
        QtMocHelpers::PropertyData<QColor>(16, 0x80000000 | 17, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3),
        // property 'fromAngle'
        QtMocHelpers::PropertyData<qreal>(18, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'toAngle'
        QtMocHelpers::PropertyData<qreal>(19, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'smoothEnds'
        QtMocHelpers::PropertyData<bool>(20, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<PieChart, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject PieChart::staticMetaObject = { {
    QMetaObject::SuperData::link<Chart::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8PieChartE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8PieChartE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8PieChartE_t>.metaTypes,
    nullptr
} };

void PieChart::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PieChart *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->filledChanged(); break;
        case 1: _t->thicknessChanged(); break;
        case 2: _t->spacingChanged(); break;
        case 3: _t->backgroundColorChanged(); break;
        case 4: _t->fromAngleChanged(); break;
        case 5: _t->toAngleChanged(); break;
        case 6: _t->smoothEndsChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PieChart::*)()>(_a, &PieChart::filledChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PieChart::*)()>(_a, &PieChart::thicknessChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PieChart::*)()>(_a, &PieChart::spacingChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PieChart::*)()>(_a, &PieChart::backgroundColorChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (PieChart::*)()>(_a, &PieChart::fromAngleChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (PieChart::*)()>(_a, &PieChart::toAngleChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (PieChart::*)()>(_a, &PieChart::smoothEndsChanged, 6))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< RangeGroup* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<RangeGroup**>(_v) = _t->range(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->filled(); break;
        case 2: *reinterpret_cast<qreal*>(_v) = _t->thickness(); break;
        case 3: *reinterpret_cast<qreal*>(_v) = _t->spacing(); break;
        case 4: *reinterpret_cast<QColor*>(_v) = _t->backgroundColor(); break;
        case 5: *reinterpret_cast<qreal*>(_v) = _t->fromAngle(); break;
        case 6: *reinterpret_cast<qreal*>(_v) = _t->toAngle(); break;
        case 7: *reinterpret_cast<bool*>(_v) = _t->smoothEnds(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setFilled(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setThickness(*reinterpret_cast<qreal*>(_v)); break;
        case 3: _t->setSpacing(*reinterpret_cast<qreal*>(_v)); break;
        case 4: _t->setBackgroundColor(*reinterpret_cast<QColor*>(_v)); break;
        case 5: _t->setFromAngle(*reinterpret_cast<qreal*>(_v)); break;
        case 6: _t->setToAngle(*reinterpret_cast<qreal*>(_v)); break;
        case 7: _t->setSmoothEnds(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int PieChart::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Chart::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 7)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 7)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 7;
    }
    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 PieChart::filledChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

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

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

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

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

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

// SIGNAL 6
void PieChart::smoothEndsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
