/****************************************************************************
** Meta object code from reading C++ file 'type_scale.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/token/type_scale.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 'type_scale.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_material5token13TypeScaleItemE_t {};
} // unnamed namespace

template <> constexpr inline auto qml_material::token::TypeScaleItem::qt_create_metaobjectdata<qt_meta_tag_ZN12qml_material5token13TypeScaleItemE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "qml_material::token::TypeScaleItem",
        "QML.Element",
        "auto",
        "typescale",
        "fresh",
        "TypeScaleItem",
        "",
        "size",
        "line_height",
        "weight",
        "QFont::Weight",
        "weight_prominent",
        "tracking"
    };

    QtMocHelpers::UintData qt_methods {
        // Method 'fresh'
        QtMocHelpers::MethodData<TypeScaleItem() const>(4, 6, QMC::AccessPublic, 0x80000000 | 5),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'size'
        QtMocHelpers::PropertyData<qint32>(7, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Final),
        // property 'line_height'
        QtMocHelpers::PropertyData<qint32>(8, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Final),
        // property 'weight'
        QtMocHelpers::PropertyData<QFont::Weight>(9, 0x80000000 | 10, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::Final),
        // property 'weight_prominent'
        QtMocHelpers::PropertyData<QFont::Weight>(11, 0x80000000 | 10, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::Final),
        // property 'tracking'
        QtMocHelpers::PropertyData<qreal>(12, QMetaType::QReal, QMC::DefaultPropertyFlags | QMC::Writable | QMC::Final),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    1,    3 },
    });
    return QtMocHelpers::metaObjectData<TypeScaleItem, void>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_ZN12qml_material5token13TypeScaleItemE[] = {
    QMetaObject::SuperData::link<QFont::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject qml_material::token::TypeScaleItem::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material5token13TypeScaleItemE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material5token13TypeScaleItemE_t>.data,
    qt_static_metacall,
    qt_meta_extradata_ZN12qml_material5token13TypeScaleItemE,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12qml_material5token13TypeScaleItemE_t>.metaTypes,
    nullptr
} };

void qml_material::token::TypeScaleItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = reinterpret_cast<TypeScaleItem *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { TypeScaleItem _r = _t->fresh();
            if (_a[0]) *reinterpret_cast<TypeScaleItem*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<qint32*>(_v) = _t->size; break;
        case 1: *reinterpret_cast<qint32*>(_v) = _t->line_height; break;
        case 2: *reinterpret_cast<QFont::Weight*>(_v) = _t->weight; break;
        case 3: *reinterpret_cast<QFont::Weight*>(_v) = _t->weight_prominent; break;
        case 4: *reinterpret_cast<qreal*>(_v) = _t->tracking; break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: QtMocHelpers::setProperty(_t->size, *reinterpret_cast<qint32*>(_v)); break;
        case 1: QtMocHelpers::setProperty(_t->line_height, *reinterpret_cast<qint32*>(_v)); break;
        case 2: QtMocHelpers::setProperty(_t->weight, *reinterpret_cast<QFont::Weight*>(_v)); break;
        case 3: QtMocHelpers::setProperty(_t->weight_prominent, *reinterpret_cast<QFont::Weight*>(_v)); break;
        case 4: QtMocHelpers::setProperty(_t->tracking, *reinterpret_cast<qreal*>(_v)); break;
        default: break;
        }
    }
}
namespace {
struct qt_meta_tag_ZN12qml_material5token9TypeScaleE_t {};
} // unnamed namespace

template <> constexpr inline auto qml_material::token::TypeScale::qt_create_metaobjectdata<qt_meta_tag_ZN12qml_material5token9TypeScaleE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "qml_material::token::TypeScale",
        "QML.Element",
        "auto",
        "display_large",
        "qml_material::token::TypeScaleItem",
        "display_medium",
        "display_small",
        "headline_large",
        "headline_medium",
        "headline_small",
        "title_large",
        "title_medium",
        "title_small",
        "body_large",
        "body_medium",
        "body_small",
        "label_large",
        "label_medium",
        "label_small"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'display_large'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(3, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'display_medium'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(5, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'display_small'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(6, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'headline_large'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(7, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'headline_medium'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(8, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'headline_small'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(9, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'title_large'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(10, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'title_medium'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(11, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'title_small'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(12, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'body_large'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(13, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'body_medium'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(14, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'body_small'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(15, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'label_large'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(16, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'label_medium'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(17, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
        // property 'label_small'
        QtMocHelpers::PropertyData<qml_material::token::TypeScaleItem>(18, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant | QMC::Final),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<TypeScale, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject qml_material::token::TypeScale::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material5token9TypeScaleE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12qml_material5token9TypeScaleE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12qml_material5token9TypeScaleE_t>.metaTypes,
    nullptr
} };

void qml_material::token::TypeScale::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TypeScale *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->display_large(); break;
        case 1: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->display_medium(); break;
        case 2: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->display_small(); break;
        case 3: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->headline_large(); break;
        case 4: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->headline_medium(); break;
        case 5: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->headline_small(); break;
        case 6: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->title_large(); break;
        case 7: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->title_medium(); break;
        case 8: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->title_small(); break;
        case 9: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->body_large(); break;
        case 10: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->body_medium(); break;
        case 11: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->body_small(); break;
        case 12: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->label_large(); break;
        case 13: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->label_medium(); break;
        case 14: *reinterpret_cast<qml_material::token::TypeScaleItem*>(_v) = _t->label_small(); break;
        default: break;
        }
    }
}

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

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

int qml_material::token::TypeScale::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 15;
    }
    return _id;
}
QT_WARNING_POP
