/****************************************************************************
** Meta object code from reading C++ file 'KChartDiagramObserver.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 "../../../../../kdiagram-3.0.1/src/KChart/KChartDiagramObserver.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 'KChartDiagramObserver.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_ZN6KChart15DiagramObserverE_t {};
} // unnamed namespace

template <> constexpr inline auto KChart::DiagramObserver::qt_create_metaobjectdata<qt_meta_tag_ZN6KChart15DiagramObserverE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KChart::DiagramObserver",
        "diagramDestroyed",
        "",
        "KChart::AbstractDiagram*",
        "diagram",
        "diagramAboutToBeDestroyed",
        "diagramDataChanged",
        "diagramDataHidden",
        "diagramAttributesChanged",
        "slotDestroyed",
        "slotAboutToBeDestroyed",
        "slotHeaderDataChanged",
        "Qt::Orientation",
        "slotDataChanged",
        "QModelIndex",
        "slotDataHidden",
        "slotAttributesChanged",
        "slotModelsChanged"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'diagramDestroyed'
        QtMocHelpers::SignalData<void(KChart::AbstractDiagram *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'diagramAboutToBeDestroyed'
        QtMocHelpers::SignalData<void(KChart::AbstractDiagram *)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'diagramDataChanged'
        QtMocHelpers::SignalData<void(KChart::AbstractDiagram *)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'diagramDataHidden'
        QtMocHelpers::SignalData<void(KChart::AbstractDiagram *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'diagramAttributesChanged'
        QtMocHelpers::SignalData<void(KChart::AbstractDiagram *)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'slotDestroyed'
        QtMocHelpers::SlotData<void(QObject *)>(9, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::QObjectStar, 2 },
        }}),
        // Slot 'slotAboutToBeDestroyed'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotHeaderDataChanged'
        QtMocHelpers::SlotData<void(Qt::Orientation, int, int)>(11, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 2 }, { QMetaType::Int, 2 }, { QMetaType::Int, 2 },
        }}),
        // Slot 'slotDataChanged'
        QtMocHelpers::SlotData<void(QModelIndex, QModelIndex)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 14, 2 }, { 0x80000000 | 14, 2 },
        }}),
        // Slot 'slotDataChanged'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotDataHidden'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotAttributesChanged'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotAttributesChanged'
        QtMocHelpers::SlotData<void(QModelIndex, QModelIndex)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 14, 2 }, { 0x80000000 | 14, 2 },
        }}),
        // Slot 'slotModelsChanged'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<DiagramObserver, qt_meta_tag_ZN6KChart15DiagramObserverE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KChart::DiagramObserver::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6KChart15DiagramObserverE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6KChart15DiagramObserverE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6KChart15DiagramObserverE_t>.metaTypes,
    nullptr
} };

void KChart::DiagramObserver::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<DiagramObserver *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->diagramDestroyed((*reinterpret_cast<std::add_pointer_t<KChart::AbstractDiagram*>>(_a[1]))); break;
        case 1: _t->diagramAboutToBeDestroyed((*reinterpret_cast<std::add_pointer_t<KChart::AbstractDiagram*>>(_a[1]))); break;
        case 2: _t->diagramDataChanged((*reinterpret_cast<std::add_pointer_t<KChart::AbstractDiagram*>>(_a[1]))); break;
        case 3: _t->diagramDataHidden((*reinterpret_cast<std::add_pointer_t<KChart::AbstractDiagram*>>(_a[1]))); break;
        case 4: _t->diagramAttributesChanged((*reinterpret_cast<std::add_pointer_t<KChart::AbstractDiagram*>>(_a[1]))); break;
        case 5: _t->slotDestroyed((*reinterpret_cast<std::add_pointer_t<QObject*>>(_a[1]))); break;
        case 6: _t->slotAboutToBeDestroyed(); break;
        case 7: _t->slotHeaderDataChanged((*reinterpret_cast<std::add_pointer_t<Qt::Orientation>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 8: _t->slotDataChanged((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[2]))); break;
        case 9: _t->slotDataChanged(); break;
        case 10: _t->slotDataHidden(); break;
        case 11: _t->slotAttributesChanged(); break;
        case 12: _t->slotAttributesChanged((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[2]))); break;
        case 13: _t->slotModelsChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (DiagramObserver::*)(KChart::AbstractDiagram * )>(_a, &DiagramObserver::diagramDestroyed, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (DiagramObserver::*)(KChart::AbstractDiagram * )>(_a, &DiagramObserver::diagramAboutToBeDestroyed, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (DiagramObserver::*)(KChart::AbstractDiagram * )>(_a, &DiagramObserver::diagramDataChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (DiagramObserver::*)(KChart::AbstractDiagram * )>(_a, &DiagramObserver::diagramDataHidden, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (DiagramObserver::*)(KChart::AbstractDiagram * )>(_a, &DiagramObserver::diagramAttributesChanged, 4))
            return;
    }
}

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

void *KChart::DiagramObserver::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6KChart15DiagramObserverE_t>.strings))
        return static_cast<void*>(this);
    return QObject::qt_metacast(_clname);
}

int KChart::DiagramObserver::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 < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 14;
    }
    return _id;
}

// SIGNAL 0
void KChart::DiagramObserver::diagramDestroyed(KChart::AbstractDiagram * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void KChart::DiagramObserver::diagramAboutToBeDestroyed(KChart::AbstractDiagram * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void KChart::DiagramObserver::diagramDataChanged(KChart::AbstractDiagram * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void KChart::DiagramObserver::diagramDataHidden(KChart::AbstractDiagram * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void KChart::DiagramObserver::diagramAttributesChanged(KChart::AbstractDiagram * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
