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

#include "../../../../../neochat-26.07.80/src/libneochat/chattextitemhelper.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 'chattextitemhelper.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.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_ZN18ChatTextItemHelperE_t {};
} // unnamed namespace

template <> constexpr inline auto ChatTextItemHelper::qt_create_metaobjectdata<qt_meta_tag_ZN18ChatTextItemHelperE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ChatTextItemHelper",
        "QML.Element",
        "auto",
        "textItemChanged",
        "",
        "textFormatChanged",
        "charFormatChanged",
        "styleChanged",
        "listChanged",
        "contentsChange",
        "position",
        "charsRemoved",
        "charsAdded",
        "contentsChanged",
        "cleared",
        "ChatTextItemHelper*",
        "self",
        "cursorPositionChanged",
        "fromContentsChange",
        "selectedTextChanged",
        "itemTextFormatChanged",
        "itemCursorPositionChanged",
        "itemSelectedTextChanged",
        "textItem",
        "QQuickItem*",
        "isEmpty",
        "cursorRectangle",
        "QRect"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'textItemChanged'
        QtMocHelpers::SignalData<void()>(3, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'textFormatChanged'
        QtMocHelpers::SignalData<void()>(5, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'charFormatChanged'
        QtMocHelpers::SignalData<void()>(6, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'styleChanged'
        QtMocHelpers::SignalData<void()>(7, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'listChanged'
        QtMocHelpers::SignalData<void()>(8, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'contentsChange'
        QtMocHelpers::SignalData<void(int, int, int)>(9, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 10 }, { QMetaType::Int, 11 }, { QMetaType::Int, 12 },
        }}),
        // Signal 'contentsChanged'
        QtMocHelpers::SignalData<void()>(13, 4, QMC::AccessPublic, QMetaType::Void),
        // Signal 'cleared'
        QtMocHelpers::SignalData<void(ChatTextItemHelper *)>(14, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Signal 'cursorPositionChanged'
        QtMocHelpers::SignalData<void(bool)>(17, 4, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 18 },
        }}),
        // Signal 'selectedTextChanged'
        QtMocHelpers::SignalData<void()>(19, 4, QMC::AccessPublic, QMetaType::Void),
        // Slot 'itemTextFormatChanged'
        QtMocHelpers::SlotData<void()>(20, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'itemCursorPositionChanged'
        QtMocHelpers::SlotData<void()>(21, 4, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'itemSelectedTextChanged'
        QtMocHelpers::SlotData<void()>(22, 4, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'textItem'
        QtMocHelpers::PropertyData<QQuickItem*>(23, 0x80000000 | 24, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'isEmpty'
        QtMocHelpers::PropertyData<bool>(25, QMetaType::Bool, QMC::DefaultPropertyFlags, 6),
        // property 'cursorRectangle'
        QtMocHelpers::PropertyData<QRect>(26, 0x80000000 | 27, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 8),
    };
    QtMocHelpers::UintData qt_enums {
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<ChatTextItemHelper, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject ChatTextItemHelper::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18ChatTextItemHelperE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18ChatTextItemHelperE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN18ChatTextItemHelperE_t>.metaTypes,
    nullptr
} };

void ChatTextItemHelper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ChatTextItemHelper *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->textItemChanged(); break;
        case 1: _t->textFormatChanged(); break;
        case 2: _t->charFormatChanged(); break;
        case 3: _t->styleChanged(); break;
        case 4: _t->listChanged(); break;
        case 5: _t->contentsChange((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 6: _t->contentsChanged(); break;
        case 7: _t->cleared((*reinterpret_cast<std::add_pointer_t<ChatTextItemHelper*>>(_a[1]))); break;
        case 8: _t->cursorPositionChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 9: _t->selectedTextChanged(); break;
        case 10: _t->itemTextFormatChanged(); break;
        case 11: _t->itemCursorPositionChanged(); break;
        case 12: _t->itemSelectedTextChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< ChatTextItemHelper* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ChatTextItemHelper::*)()>(_a, &ChatTextItemHelper::textItemChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatTextItemHelper::*)()>(_a, &ChatTextItemHelper::textFormatChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatTextItemHelper::*)()>(_a, &ChatTextItemHelper::charFormatChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatTextItemHelper::*)()>(_a, &ChatTextItemHelper::styleChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatTextItemHelper::*)()>(_a, &ChatTextItemHelper::listChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatTextItemHelper::*)(int , int , int )>(_a, &ChatTextItemHelper::contentsChange, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatTextItemHelper::*)()>(_a, &ChatTextItemHelper::contentsChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatTextItemHelper::*)(ChatTextItemHelper * )>(_a, &ChatTextItemHelper::cleared, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatTextItemHelper::*)(bool )>(_a, &ChatTextItemHelper::cursorPositionChanged, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (ChatTextItemHelper::*)()>(_a, &ChatTextItemHelper::selectedTextChanged, 9))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQuickItem* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QQuickItem**>(_v) = _t->textItem(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->isEmpty(); break;
        case 2: *reinterpret_cast<QRect*>(_v) = _t->cursorRectangle(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setTextItem(*reinterpret_cast<QQuickItem**>(_v)); break;
        default: break;
        }
    }
}

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

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

int ChatTextItemHelper::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 < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 3;
    }
    return _id;
}

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

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

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

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

// SIGNAL 4
void ChatTextItemHelper::listChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void ChatTextItemHelper::contentsChange(int _t1, int _t2, int _t3)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1, _t2, _t3);
}

// SIGNAL 6
void ChatTextItemHelper::contentsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void ChatTextItemHelper::cleared(ChatTextItemHelper * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1);
}

// SIGNAL 8
void ChatTextItemHelper::cursorPositionChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1);
}

// SIGNAL 9
void ChatTextItemHelper::selectedTextChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}
QT_WARNING_POP
