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

#include "qml_material/theme.hpp"
#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 'theme.hpp' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. 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_ZN12qml_material9ThemeSizeE_t {};
} // unnamed namespace

template <> constexpr inline auto qml_material::ThemeSize::qt_create_metaobjectdata<qt_meta_tag_ZN12qml_material9ThemeSizeE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "qml_material::ThemeSize",
        "QML.Element",
        "auto",
        "widthChanged",
        "",
        "durationChanged",
        "windowClassChanged",
        "verticalPaddingChanged",
        "windowClass",
        "isCompact",
        "isMedium",
        "isExpanded",
        "isLarge",
        "isExtraLarge",
        "duration",
        "width",
        "verticalPadding"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'widthChanged'
        QtMocHelpers::SignalData<void(qint32)>(3, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 4 },
        }}),
        // Signal 'durationChanged'
        QtMocHelpers::SignalData<void(qint32)>(5, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 4 },
        }}),
        // Signal 'windowClassChanged'
        QtMocHelpers::SignalData<void(qint32)>(6, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 4 },
        }}),
        // Signal 'verticalPaddingChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'windowClass'
        QtMocHelpers::PropertyData<qint32>(8, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final, 2),
        // property 'isCompact'
        QtMocHelpers::PropertyData<bool>(9, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Final, 2),
        // property 'isMedium'
        QtMocHelpers::PropertyData<bool>(10, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Final, 2),
        // property 'isExpanded'
        QtMocHelpers::PropertyData<bool>(11, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Final, 2),
        // property 'isLarge'
        QtMocHelpers::PropertyData<bool>(12, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Final, 2),
        // property 'isExtraLarge'
        QtMocHelpers::PropertyData<bool>(13, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Final, 2),
        // property 'duration'
        QtMocHelpers::PropertyData<qint32>(14, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final, 1),
        // property 'width'
        QtMocHelpers::PropertyData<qint32>(15, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet | QMC::Final, 0),
        // property 'verticalPadding'
        QtMocHelpers::PropertyData<qint32>(16, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Final, 3),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<ThemeSize, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject qml_material::ThemeSize::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material9ThemeSizeE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material9ThemeSizeE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12qml_material9ThemeSizeE_t>.metaTypes,
    nullptr
} };

void qml_material::ThemeSize::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ThemeSize *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->widthChanged((*reinterpret_cast<std::add_pointer_t<qint32>>(_a[1]))); break;
        case 1: _t->durationChanged((*reinterpret_cast<std::add_pointer_t<qint32>>(_a[1]))); break;
        case 2: _t->windowClassChanged((*reinterpret_cast<std::add_pointer_t<qint32>>(_a[1]))); break;
        case 3: _t->verticalPaddingChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ThemeSize::*)(qint32 )>(_a, &ThemeSize::widthChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThemeSize::*)(qint32 )>(_a, &ThemeSize::durationChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThemeSize::*)(qint32 )>(_a, &ThemeSize::windowClassChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ThemeSize::*)()>(_a, &ThemeSize::verticalPaddingChanged, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<qint32*>(_v) = _t->windowClass(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->isCompact(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->isMedium(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->isExpanded(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->isLarge(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->isExtraLarge(); break;
        case 6: *reinterpret_cast<qint32*>(_v) = _t->duration(); break;
        case 7: *reinterpret_cast<qint32*>(_v) = _t->width(); break;
        case 8: *reinterpret_cast<qint32*>(_v) = _t->verticalPadding(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setWindowClass(*reinterpret_cast<qint32*>(_v)); break;
        case 6: _t->setDuration(*reinterpret_cast<qint32*>(_v)); break;
        case 7: _t->setWidth(*reinterpret_cast<qint32*>(_v)); break;
        default: break;
        }
    }
}

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

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

int qml_material::ThemeSize::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 < 4)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 4)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 4;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    return _id;
}

// SIGNAL 0
void qml_material::ThemeSize::widthChanged(qint32 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void qml_material::ThemeSize::durationChanged(qint32 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void qml_material::ThemeSize::windowClassChanged(qint32 _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void qml_material::ThemeSize::verticalPaddingChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}
namespace {
struct qt_meta_tag_ZN12qml_material5ThemeE_t {};
} // unnamed namespace

template <> constexpr inline auto qml_material::Theme::qt_create_metaobjectdata<qt_meta_tag_ZN12qml_material5ThemeE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "qml_material::Theme",
        "QML.Element",
        "MProp",
        "QML.Creatable",
        "false",
        "QML.UncreatableReason",
        "",
        "QML.Attached",
        "Theme",
        "textColorChanged",
        "backgroundColorChanged",
        "elevationChanged",
        "colorChanged",
        "sizeChanged",
        "pageChanged",
        "textColor",
        "QColor",
        "backgroundColor",
        "elevation",
        "color",
        "qml_material::MdColorMgr*",
        "size",
        "qml_material::ThemeSize*",
        "page",
        "qml_material::PageContext*"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'textColorChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'backgroundColorChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'elevationChanged'
        QtMocHelpers::SignalData<void()>(11, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'colorChanged'
        QtMocHelpers::SignalData<void()>(12, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sizeChanged'
        QtMocHelpers::SignalData<void()>(13, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'pageChanged'
        QtMocHelpers::SignalData<void()>(14, 6, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'textColor'
        QtMocHelpers::PropertyData<QColor>(15, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Resettable | QMC::EnumOrFlag | QMC::Final, 0),
        // property 'backgroundColor'
        QtMocHelpers::PropertyData<QColor>(17, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Resettable | QMC::EnumOrFlag | QMC::Final, 1),
        // property 'elevation'
        QtMocHelpers::PropertyData<int>(18, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Resettable | QMC::Final, 2),
        // property 'color'
        QtMocHelpers::PropertyData<qml_material::MdColorMgr*>(19, 0x80000000 | 20, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Resettable | QMC::EnumOrFlag | QMC::Final, 3),
        // property 'size'
        QtMocHelpers::PropertyData<qml_material::ThemeSize*>(21, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Resettable | QMC::EnumOrFlag | QMC::Final, 4),
        // property 'page'
        QtMocHelpers::PropertyData<qml_material::PageContext*>(23, 0x80000000 | 24, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Resettable | QMC::EnumOrFlag | QMC::Final, 5),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
            {    5,    6 },
            {    7,    8 },
    });
    return QtMocHelpers::metaObjectData<Theme, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject qml_material::Theme::staticMetaObject = { {
    QMetaObject::SuperData::link<QQuickAttachedPropertyPropagator::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material5ThemeE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material5ThemeE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12qml_material5ThemeE_t>.metaTypes,
    nullptr
} };

void qml_material::Theme::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Theme *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->textColorChanged(); break;
        case 1: _t->backgroundColorChanged(); break;
        case 2: _t->elevationChanged(); break;
        case 3: _t->colorChanged(); break;
        case 4: _t->sizeChanged(); break;
        case 5: _t->pageChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Theme::*)()>(_a, &Theme::textColorChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Theme::*)()>(_a, &Theme::backgroundColorChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Theme::*)()>(_a, &Theme::elevationChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Theme::*)()>(_a, &Theme::colorChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Theme::*)()>(_a, &Theme::sizeChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Theme::*)()>(_a, &Theme::pageChanged, 5))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 3:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< qml_material::MdColorMgr* >(); break;
        case 5:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< qml_material::PageContext* >(); break;
        case 4:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< qml_material::ThemeSize* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QColor*>(_v) = _t->textColor(); break;
        case 1: *reinterpret_cast<QColor*>(_v) = _t->backgroundColor(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->elevation(); break;
        case 3: *reinterpret_cast<qml_material::MdColorMgr**>(_v) = _t->color(); break;
        case 4: *reinterpret_cast<qml_material::ThemeSize**>(_v) = _t->size(); break;
        case 5: *reinterpret_cast<qml_material::PageContext**>(_v) = _t->page(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->set_textColor(*reinterpret_cast<QColor*>(_v)); break;
        case 1: _t->set_backgroundColor(*reinterpret_cast<QColor*>(_v)); break;
        case 2: _t->set_elevation(*reinterpret_cast<int*>(_v)); break;
        case 3: _t->set_color(*reinterpret_cast<qml_material::MdColorMgr**>(_v)); break;
        case 4: _t->set_size(*reinterpret_cast<qml_material::ThemeSize**>(_v)); break;
        case 5: _t->set_page(*reinterpret_cast<qml_material::PageContext**>(_v)); break;
        default: break;
        }
    }
    if (_c == QMetaObject::ResetProperty) {
        switch (_id) {
        case 0: _t->reset_textColor(); break;
        case 1: _t->reset_backgroundColor(); break;
        case 2: _t->reset_elevation(); break;
        case 3: _t->reset_color(); break;
        case 4: _t->reset_size(); break;
        case 5: _t->reset_page(); break;
        default: break;
        }
    }
}

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

void *qml_material::Theme::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material5ThemeE_t>.strings))
        return static_cast<void*>(this);
    return QQuickAttachedPropertyPropagator::qt_metacast(_clname);
}

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

// SIGNAL 0
void qml_material::Theme::textColorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void qml_material::Theme::backgroundColorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void qml_material::Theme::elevationChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void qml_material::Theme::colorChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void qml_material::Theme::sizeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void qml_material::Theme::pageChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
