/****************************************************************************
** Meta object code from reading C++ file 'markdownbridge.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 "../../editor/markdown/markdownbridge.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 'markdownbridge.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_ZN14MarkdownBridgeE_t {};
} // unnamed namespace

template <> constexpr inline auto MarkdownBridge::qt_create_metaobjectdata<qt_meta_tag_ZN14MarkdownBridgeE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "MarkdownBridge",
        "ready",
        "",
        "contentChanged",
        "md",
        "scrollRatioChanged",
        "ratio",
        "openLinkRequested",
        "url",
        "retranslated",
        "setMarkdownRequested",
        "setModeRequested",
        "editable",
        "applyThemeRequested",
        "jsonColors",
        "isDark",
        "setLayoutRequested",
        "maxW",
        "center",
        "scrollToRatioRequested",
        "onReady",
        "onContentChanged",
        "onScrollRatio",
        "onOpenLink",
        "retranslate",
        "collapseTooltip",
        "expandTooltip",
        "copyTooltip",
        "expandText",
        "collapsedLinesText"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'ready'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'contentChanged'
        QtMocHelpers::SignalData<void(const QString &)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Signal 'scrollRatioChanged'
        QtMocHelpers::SignalData<void(double)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 6 },
        }}),
        // Signal 'openLinkRequested'
        QtMocHelpers::SignalData<void(const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Signal 'retranslated'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'setMarkdownRequested'
        QtMocHelpers::SignalData<void(const QString &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Signal 'setModeRequested'
        QtMocHelpers::SignalData<void(bool)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 12 },
        }}),
        // Signal 'applyThemeRequested'
        QtMocHelpers::SignalData<void(const QString &, bool)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 14 }, { QMetaType::Bool, 15 },
        }}),
        // Signal 'setLayoutRequested'
        QtMocHelpers::SignalData<void(int, bool)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 17 }, { QMetaType::Bool, 18 },
        }}),
        // Signal 'scrollToRatioRequested'
        QtMocHelpers::SignalData<void(double)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 6 },
        }}),
        // Slot 'onReady'
        QtMocHelpers::SlotData<void()>(20, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onContentChanged'
        QtMocHelpers::SlotData<void(const QString &)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 4 },
        }}),
        // Slot 'onScrollRatio'
        QtMocHelpers::SlotData<void(double)>(22, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 6 },
        }}),
        // Slot 'onOpenLink'
        QtMocHelpers::SlotData<void(const QString &)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'retranslate'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'collapseTooltip'
        QtMocHelpers::PropertyData<QString>(25, QMetaType::QString, QMC::DefaultPropertyFlags, 4),
        // property 'expandTooltip'
        QtMocHelpers::PropertyData<QString>(26, QMetaType::QString, QMC::DefaultPropertyFlags, 4),
        // property 'copyTooltip'
        QtMocHelpers::PropertyData<QString>(27, QMetaType::QString, QMC::DefaultPropertyFlags, 4),
        // property 'expandText'
        QtMocHelpers::PropertyData<QString>(28, QMetaType::QString, QMC::DefaultPropertyFlags, 4),
        // property 'collapsedLinesText'
        QtMocHelpers::PropertyData<QString>(29, QMetaType::QString, QMC::DefaultPropertyFlags, 4),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<MarkdownBridge, qt_meta_tag_ZN14MarkdownBridgeE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject MarkdownBridge::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14MarkdownBridgeE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN14MarkdownBridgeE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN14MarkdownBridgeE_t>.metaTypes,
    nullptr
} };

void MarkdownBridge::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<MarkdownBridge *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->ready(); break;
        case 1: _t->contentChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->scrollRatioChanged((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 3: _t->openLinkRequested((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->retranslated(); break;
        case 5: _t->setMarkdownRequested((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 6: _t->setModeRequested((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 7: _t->applyThemeRequested((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 8: _t->setLayoutRequested((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 9: _t->scrollToRatioRequested((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 10: _t->onReady(); break;
        case 11: _t->onContentChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 12: _t->onScrollRatio((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 13: _t->onOpenLink((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 14: _t->retranslate(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (MarkdownBridge::*)()>(_a, &MarkdownBridge::ready, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (MarkdownBridge::*)(const QString & )>(_a, &MarkdownBridge::contentChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (MarkdownBridge::*)(double )>(_a, &MarkdownBridge::scrollRatioChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (MarkdownBridge::*)(const QString & )>(_a, &MarkdownBridge::openLinkRequested, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (MarkdownBridge::*)()>(_a, &MarkdownBridge::retranslated, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (MarkdownBridge::*)(const QString & )>(_a, &MarkdownBridge::setMarkdownRequested, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (MarkdownBridge::*)(bool )>(_a, &MarkdownBridge::setModeRequested, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (MarkdownBridge::*)(const QString & , bool )>(_a, &MarkdownBridge::applyThemeRequested, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (MarkdownBridge::*)(int , bool )>(_a, &MarkdownBridge::setLayoutRequested, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (MarkdownBridge::*)(double )>(_a, &MarkdownBridge::scrollToRatioRequested, 9))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QString*>(_v) = _t->collapseTooltip(); break;
        case 1: *reinterpret_cast<QString*>(_v) = _t->expandTooltip(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->copyTooltip(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->expandText(); break;
        case 4: *reinterpret_cast<QString*>(_v) = _t->collapsedLinesText(); break;
        default: break;
        }
    }
}

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

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

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

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

// SIGNAL 1
void MarkdownBridge::contentChanged(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void MarkdownBridge::scrollRatioChanged(double _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void MarkdownBridge::openLinkRequested(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

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

// SIGNAL 5
void MarkdownBridge::setMarkdownRequested(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}

// SIGNAL 6
void MarkdownBridge::setModeRequested(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 6, nullptr, _t1);
}

// SIGNAL 7
void MarkdownBridge::applyThemeRequested(const QString & _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 7, nullptr, _t1, _t2);
}

// SIGNAL 8
void MarkdownBridge::setLayoutRequested(int _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 8, nullptr, _t1, _t2);
}

// SIGNAL 9
void MarkdownBridge::scrollToRatioRequested(double _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 9, nullptr, _t1);
}
QT_WARNING_POP
