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

#include "../../../kolourpaint-26.08.0/tools/selection/text/kpToolText.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 'kpToolText.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. 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_ZN10kpToolTextE_t {};
} // unnamed namespace

template <> constexpr inline auto kpToolText::qt_create_metaobjectdata<qt_meta_tag_ZN10kpToolTextE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "kpToolText",
        "slotIsOpaqueChanged",
        "",
        "isOpaque",
        "slotColorsSwapped",
        "kpColor",
        "newForegroundColor",
        "newBackgroundColor",
        "slotForegroundColorChanged",
        "color",
        "slotBackgroundColorChanged",
        "slotColorSimilarityChanged",
        "slotFontFamilyChanged",
        "fontFamily",
        "oldFontFamily",
        "slotFontSizeChanged",
        "fontSize",
        "oldFontSize",
        "slotBoldChanged",
        "isBold",
        "slotItalicChanged",
        "isItalic",
        "slotUnderlineChanged",
        "isUnderline",
        "slotStrikeThruChanged",
        "isStrikeThru"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'slotIsOpaqueChanged'
        QtMocHelpers::SlotData<void(bool)>(1, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
        // Slot 'slotColorsSwapped'
        QtMocHelpers::SlotData<void(const kpColor &, const kpColor &)>(4, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 5, 6 }, { 0x80000000 | 5, 7 },
        }}),
        // Slot 'slotForegroundColorChanged'
        QtMocHelpers::SlotData<void(const kpColor &)>(8, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 5, 9 },
        }}),
        // Slot 'slotBackgroundColorChanged'
        QtMocHelpers::SlotData<void(const kpColor &)>(10, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 5, 9 },
        }}),
        // Slot 'slotColorSimilarityChanged'
        QtMocHelpers::SlotData<void(double, int)>(11, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Double, 2 }, { QMetaType::Int, 2 },
        }}),
        // Slot 'slotFontFamilyChanged'
        QtMocHelpers::SlotData<void(const QString &, const QString &)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 13 }, { QMetaType::QString, 14 },
        }}),
        // Slot 'slotFontSizeChanged'
        QtMocHelpers::SlotData<void(int, int)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 16 }, { QMetaType::Int, 17 },
        }}),
        // Slot 'slotBoldChanged'
        QtMocHelpers::SlotData<void(bool)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 19 },
        }}),
        // Slot 'slotItalicChanged'
        QtMocHelpers::SlotData<void(bool)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 21 },
        }}),
        // Slot 'slotUnderlineChanged'
        QtMocHelpers::SlotData<void(bool)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 23 },
        }}),
        // Slot 'slotStrikeThruChanged'
        QtMocHelpers::SlotData<void(bool)>(24, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 25 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<kpToolText, qt_meta_tag_ZN10kpToolTextE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject kpToolText::staticMetaObject = { {
    QMetaObject::SuperData::link<kpAbstractSelectionTool::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10kpToolTextE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10kpToolTextE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10kpToolTextE_t>.metaTypes,
    nullptr
} };

void kpToolText::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<kpToolText *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->slotIsOpaqueChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 1: _t->slotColorsSwapped((*reinterpret_cast<std::add_pointer_t<kpColor>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<kpColor>>(_a[2]))); break;
        case 2: _t->slotForegroundColorChanged((*reinterpret_cast<std::add_pointer_t<kpColor>>(_a[1]))); break;
        case 3: _t->slotBackgroundColorChanged((*reinterpret_cast<std::add_pointer_t<kpColor>>(_a[1]))); break;
        case 4: _t->slotColorSimilarityChanged((*reinterpret_cast<std::add_pointer_t<double>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 5: _t->slotFontFamilyChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 6: _t->slotFontSizeChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 7: _t->slotBoldChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 8: _t->slotItalicChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 9: _t->slotUnderlineChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 10: _t->slotStrikeThruChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
}

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

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

int kpToolText::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = kpAbstractSelectionTool::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 11;
    }
    return _id;
}
QT_WARNING_POP
