/****************************************************************************
** Meta object code from reading C++ file 'kontrast.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 "../../../../kontrast-26.04.0/src/kontrast.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 'kontrast.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_ZN8KontrastE_t {};
} // unnamed namespace

template <> constexpr inline auto Kontrast::qt_create_metaobjectdata<qt_meta_tag_ZN8KontrastE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Kontrast",
        "QML.Element",
        "auto",
        "QML.Singleton",
        "true",
        "textColorChanged",
        "",
        "backgroundColorChanged",
        "contrastChanged",
        "grabbedColorChanged",
        "fontSizeChanged",
        "gotColorResponse",
        "response",
        "QVariantMap",
        "results",
        "random",
        "reverse",
        "grabColor",
        "pixelAt",
        "QColor",
        "QImage",
        "image",
        "x",
        "y",
        "textColor",
        "textHue",
        "textSaturation",
        "textLightness",
        "fontSize",
        "backgroundColor",
        "backgroundHue",
        "backgroundSaturation",
        "fontSizeLabel",
        "backgroundLightness",
        "contrast",
        "displayTextColor",
        "grabbedColor",
        "Quality",
        "Bad",
        "Good",
        "Perfect"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'textColorChanged'
        QtMocHelpers::SignalData<void()>(5, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'backgroundColorChanged'
        QtMocHelpers::SignalData<void()>(7, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'contrastChanged'
        QtMocHelpers::SignalData<void()>(8, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'grabbedColorChanged'
        QtMocHelpers::SignalData<void()>(9, 6, QMC::AccessPublic, QMetaType::Void),
        // Signal 'fontSizeChanged'
        QtMocHelpers::SignalData<void()>(10, 6, QMC::AccessPublic, QMetaType::Void),
        // Slot 'gotColorResponse'
        QtMocHelpers::SlotData<void(uint, const QVariantMap &)>(11, 6, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::UInt, 12 }, { 0x80000000 | 13, 14 },
        }}),
        // Method 'random'
        QtMocHelpers::MethodData<void()>(15, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'reverse'
        QtMocHelpers::MethodData<void()>(16, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'grabColor'
        QtMocHelpers::MethodData<void()>(17, 6, QMC::AccessPublic, QMetaType::Void),
        // Method 'pixelAt'
        QtMocHelpers::MethodData<QColor(const QImage &, int, int) const>(18, 6, QMC::AccessPublic, 0x80000000 | 19, {{
            { 0x80000000 | 20, 21 }, { QMetaType::Int, 22 }, { QMetaType::Int, 23 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'textColor'
        QtMocHelpers::PropertyData<QColor>(24, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'textHue'
        QtMocHelpers::PropertyData<int>(25, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'textSaturation'
        QtMocHelpers::PropertyData<int>(26, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'textLightness'
        QtMocHelpers::PropertyData<int>(27, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'fontSize'
        QtMocHelpers::PropertyData<int>(28, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'backgroundColor'
        QtMocHelpers::PropertyData<QColor>(29, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'backgroundHue'
        QtMocHelpers::PropertyData<int>(30, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'backgroundSaturation'
        QtMocHelpers::PropertyData<int>(31, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'fontSizeLabel'
        QtMocHelpers::PropertyData<QString>(32, QMetaType::QString, QMC::DefaultPropertyFlags, 4),
        // property 'backgroundLightness'
        QtMocHelpers::PropertyData<int>(33, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'contrast'
        QtMocHelpers::PropertyData<qreal>(34, QMetaType::QReal, QMC::DefaultPropertyFlags, 2),
        // property 'displayTextColor'
        QtMocHelpers::PropertyData<QColor>(35, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 2),
        // property 'grabbedColor'
        QtMocHelpers::PropertyData<QColor>(36, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 3),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Quality'
        QtMocHelpers::EnumData<enum Quality>(37, 37, QMC::EnumFlags{}).add({
            {   38, Quality::Bad },
            {   39, Quality::Good },
            {   40, Quality::Perfect },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
    });
    return QtMocHelpers::metaObjectData<Kontrast, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject Kontrast::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8KontrastE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8KontrastE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8KontrastE_t>.metaTypes,
    nullptr
} };

void Kontrast::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Kontrast *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->textColorChanged(); break;
        case 1: _t->backgroundColorChanged(); break;
        case 2: _t->contrastChanged(); break;
        case 3: _t->grabbedColorChanged(); break;
        case 4: _t->fontSizeChanged(); break;
        case 5: _t->gotColorResponse((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVariantMap>>(_a[2]))); break;
        case 6: _t->random(); break;
        case 7: _t->reverse(); break;
        case 8: _t->grabColor(); break;
        case 9: { QColor _r = _t->pixelAt((*reinterpret_cast<std::add_pointer_t<QImage>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])));
            if (_a[0]) *reinterpret_cast<QColor*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Kontrast::*)()>(_a, &Kontrast::textColorChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kontrast::*)()>(_a, &Kontrast::backgroundColorChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kontrast::*)()>(_a, &Kontrast::contrastChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kontrast::*)()>(_a, &Kontrast::grabbedColorChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Kontrast::*)()>(_a, &Kontrast::fontSizeChanged, 4))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QColor*>(_v) = _t->textColor(); break;
        case 1: *reinterpret_cast<int*>(_v) = _t->textHue(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->textSaturation(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->textLightness(); break;
        case 4: *reinterpret_cast<int*>(_v) = _t->fontSize(); break;
        case 5: *reinterpret_cast<QColor*>(_v) = _t->backgroundColor(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->backgroundHue(); break;
        case 7: *reinterpret_cast<int*>(_v) = _t->backgroundSaturation(); break;
        case 8: *reinterpret_cast<QString*>(_v) = _t->getFontSizeQualityLabel(); break;
        case 9: *reinterpret_cast<int*>(_v) = _t->backgroundLightness(); break;
        case 10: *reinterpret_cast<qreal*>(_v) = _t->contrast(); break;
        case 11: *reinterpret_cast<QColor*>(_v) = _t->displayTextColor(); break;
        case 12: *reinterpret_cast<QColor*>(_v) = _t->grabbedColor(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setTextColor(*reinterpret_cast<QColor*>(_v)); break;
        case 1: _t->setTextHue(*reinterpret_cast<int*>(_v)); break;
        case 2: _t->setTextSaturation(*reinterpret_cast<int*>(_v)); break;
        case 3: _t->setTextLightness(*reinterpret_cast<int*>(_v)); break;
        case 4: _t->setFontSize(*reinterpret_cast<int*>(_v)); break;
        case 5: _t->setBackgroundColor(*reinterpret_cast<QColor*>(_v)); break;
        case 6: _t->setBackgroundHue(*reinterpret_cast<int*>(_v)); break;
        case 7: _t->setBackgroundSaturation(*reinterpret_cast<int*>(_v)); break;
        case 9: _t->setBackgroundLightness(*reinterpret_cast<int*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

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

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

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

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

// SIGNAL 4
void Kontrast::fontSizeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
