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

#include "../../../../ktextwidgets-6.29.0/src/widgets/krichtextwidget.h"
#include <QtGui/qtextcursor.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 'krichtextwidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN15KRichTextWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto KRichTextWidget::qt_create_metaobjectdata<qt_meta_tag_ZN15KRichTextWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KRichTextWidget",
        "setActionsEnabled",
        "",
        "enabled",
        "richTextSupport",
        "RichTextSupport",
        "RichTextSupportValues",
        "DisableRichText",
        "SupportBold",
        "SupportItalic",
        "SupportUnderline",
        "SupportStrikeOut",
        "SupportFontFamily",
        "SupportFontSize",
        "SupportTextForegroundColor",
        "SupportTextBackgroundColor",
        "FullTextFormattingSupport",
        "SupportChangeListStyle",
        "SupportIndentLists",
        "SupportDedentLists",
        "FullListSupport",
        "SupportAlignment",
        "SupportRuleLine",
        "SupportHyperlinks",
        "SupportFormatPainting",
        "SupportToPlainText",
        "SupportSuperScriptAndSubScript",
        "SupportDirection",
        "SupportHeading",
        "FullSupport"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'setActionsEnabled'
        QtMocHelpers::SlotData<void(bool)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 3 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'richTextSupport'
        QtMocHelpers::PropertyData<RichTextSupport>(4, 0x80000000 | 5, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
        // flag 'RichTextSupport'
        QtMocHelpers::EnumData<RichTextSupport>(5, 6, QMC::EnumIsFlag).add({
            {    7, RichTextSupportValues::DisableRichText },
            {    8, RichTextSupportValues::SupportBold },
            {    9, RichTextSupportValues::SupportItalic },
            {   10, RichTextSupportValues::SupportUnderline },
            {   11, RichTextSupportValues::SupportStrikeOut },
            {   12, RichTextSupportValues::SupportFontFamily },
            {   13, RichTextSupportValues::SupportFontSize },
            {   14, RichTextSupportValues::SupportTextForegroundColor },
            {   15, RichTextSupportValues::SupportTextBackgroundColor },
            {   16, RichTextSupportValues::FullTextFormattingSupport },
            {   17, RichTextSupportValues::SupportChangeListStyle },
            {   18, RichTextSupportValues::SupportIndentLists },
            {   19, RichTextSupportValues::SupportDedentLists },
            {   20, RichTextSupportValues::FullListSupport },
            {   21, RichTextSupportValues::SupportAlignment },
            {   22, RichTextSupportValues::SupportRuleLine },
            {   23, RichTextSupportValues::SupportHyperlinks },
            {   24, RichTextSupportValues::SupportFormatPainting },
            {   25, RichTextSupportValues::SupportToPlainText },
            {   26, RichTextSupportValues::SupportSuperScriptAndSubScript },
            {   27, RichTextSupportValues::SupportDirection },
            {   28, RichTextSupportValues::SupportHeading },
            {   29, RichTextSupportValues::FullSupport },
        }),
    };
    return QtMocHelpers::metaObjectData<KRichTextWidget, qt_meta_tag_ZN15KRichTextWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KRichTextWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<KRichTextEdit::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15KRichTextWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15KRichTextWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15KRichTextWidgetE_t>.metaTypes,
    nullptr
} };

void KRichTextWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KRichTextWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->setActionsEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: QtMocHelpers::assignFlags<RichTextSupport>(_v, _t->richTextSupport()); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setRichTextSupport(*reinterpret_cast<RichTextSupport*>(_v)); break;
        default: break;
        }
    }
}

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

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

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