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

#include "../../../../kwidgetsaddons-6.26.0/src/kruler.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 'kruler.h' 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_ZN6KRulerE_t {};
} // unnamed namespace

template <> constexpr inline auto KRuler::qt_create_metaobjectdata<qt_meta_tag_ZN6KRulerE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KRuler",
        "slotNewValue",
        "",
        "slotNewOffset",
        "slotEndOffset",
        "showTinyMarks",
        "showLittleMarks",
        "showMediumMarks",
        "showBigMarks",
        "showPointer",
        "showEndLabel",
        "tinyMarkDistance",
        "littleMarkDistance",
        "mediumMarkDistance",
        "bigMarkDistance",
        "pixelPerMark",
        "lengthFixed",
        "endLabel",
        "length",
        "offset",
        "endOffset",
        "MetricStyle",
        "Custom",
        "Pixel",
        "Inch",
        "Millimetres",
        "Centimetres",
        "Metres"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'slotNewValue'
        QtMocHelpers::SlotData<void(int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'slotNewOffset'
        QtMocHelpers::SlotData<void(int)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'slotEndOffset'
        QtMocHelpers::SlotData<void(int)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'showTinyMarks'
        QtMocHelpers::PropertyData<bool>(5, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'showLittleMarks'
        QtMocHelpers::PropertyData<bool>(6, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'showMediumMarks'
        QtMocHelpers::PropertyData<bool>(7, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'showBigMarks'
        QtMocHelpers::PropertyData<bool>(8, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'showPointer'
        QtMocHelpers::PropertyData<bool>(9, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'showEndLabel'
        QtMocHelpers::PropertyData<bool>(10, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'tinyMarkDistance'
        QtMocHelpers::PropertyData<int>(11, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'littleMarkDistance'
        QtMocHelpers::PropertyData<int>(12, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'mediumMarkDistance'
        QtMocHelpers::PropertyData<int>(13, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable),
        // property 'bigMarkDistance'
        QtMocHelpers::PropertyData<int>(14, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'pixelPerMark'
        QtMocHelpers::PropertyData<double>(15, QMetaType::Double, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'lengthFixed'
        QtMocHelpers::PropertyData<bool>(16, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'endLabel'
        QtMocHelpers::PropertyData<QString>(17, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'length'
        QtMocHelpers::PropertyData<int>(18, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'offset'
        QtMocHelpers::PropertyData<int>(19, QMetaType::Int, QMC::DefaultPropertyFlags),
        // property 'endOffset'
        QtMocHelpers::PropertyData<int>(20, QMetaType::Int, QMC::DefaultPropertyFlags),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'MetricStyle'
        QtMocHelpers::EnumData<enum MetricStyle>(21, 21, QMC::EnumFlags{}).add({
            {   22, MetricStyle::Custom },
            {   23, MetricStyle::Pixel },
            {   24, MetricStyle::Inch },
            {   25, MetricStyle::Millimetres },
            {   26, MetricStyle::Centimetres },
            {   27, MetricStyle::Metres },
        }),
    };
    return QtMocHelpers::metaObjectData<KRuler, qt_meta_tag_ZN6KRulerE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KRuler::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractSlider::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6KRulerE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6KRulerE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6KRulerE_t>.metaTypes,
    nullptr
} };

void KRuler::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KRuler *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->slotNewValue((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 1: _t->slotNewOffset((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 2: _t->slotEndOffset((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->showTinyMarks(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->showLittleMarks(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->showMediumMarks(); break;
        case 3: *reinterpret_cast<bool*>(_v) = _t->showBigMarks(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->showPointer(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->showEndLabel(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->tinyMarkDistance(); break;
        case 7: *reinterpret_cast<int*>(_v) = _t->littleMarkDistance(); break;
        case 8: *reinterpret_cast<int*>(_v) = _t->mediumMarkDistance(); break;
        case 9: *reinterpret_cast<int*>(_v) = _t->bigMarkDistance(); break;
        case 10: *reinterpret_cast<double*>(_v) = _t->pixelPerMark(); break;
        case 11: *reinterpret_cast<bool*>(_v) = _t->lengthFixed(); break;
        case 12: *reinterpret_cast<QString*>(_v) = _t->endLabel(); break;
        case 13: *reinterpret_cast<int*>(_v) = _t->length(); break;
        case 14: *reinterpret_cast<int*>(_v) = _t->offset(); break;
        case 15: *reinterpret_cast<int*>(_v) = _t->endOffset(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setShowTinyMarks(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->setShowLittleMarks(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setShowMediumMarks(*reinterpret_cast<bool*>(_v)); break;
        case 3: _t->setShowBigMarks(*reinterpret_cast<bool*>(_v)); break;
        case 4: _t->setShowPointer(*reinterpret_cast<bool*>(_v)); break;
        case 5: _t->setShowEndLabel(*reinterpret_cast<bool*>(_v)); break;
        case 6: _t->setTinyMarkDistance(*reinterpret_cast<int*>(_v)); break;
        case 7: _t->setLittleMarkDistance(*reinterpret_cast<int*>(_v)); break;
        case 8: _t->setBigMarkDistance(*reinterpret_cast<int*>(_v)); break;
        case 9: _t->setBigMarkDistance(*reinterpret_cast<int*>(_v)); break;
        case 10: _t->setPixelPerMark(*reinterpret_cast<double*>(_v)); break;
        case 11: _t->setLengthFixed(*reinterpret_cast<bool*>(_v)); break;
        case 12: _t->setEndLabel(*reinterpret_cast<QString*>(_v)); break;
        case 13: _t->setLength(*reinterpret_cast<int*>(_v)); break;
        default: break;
        }
    }
}

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

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

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