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

#include "../../../../src/ViewEditors/ViewPreview.h"
#include <QtGui/qtextcursor.h>
#include <QtGui/qscreen.h>
#include <QtNetwork/QSslPreSharedKeyAuthenticator>
#include <QtNetwork/QSslError>
#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 'ViewPreview.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.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_ZN11ViewPreviewE_t {};
} // unnamed namespace

template <> constexpr inline auto ViewPreview::qt_create_metaobjectdata<qt_meta_tag_ZN11ViewPreviewE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "ViewPreview",
        "ZoomFactorChanged",
        "",
        "new_zoom_factor",
        "LinkClicked",
        "QUrl",
        "url",
        "ShowStatusMessageRequest",
        "message",
        "DocumentLoaded",
        "GoToPreviewLocationRequest",
        "ViewProgress",
        "ShowOverlay",
        "HideOverlay",
        "GetHTML",
        "ContinueCustomLoadAfterClear",
        "ClearWebCache",
        "UpdateFinishedState",
        "okay",
        "LoadingStarted",
        "LoadingProgress",
        "progress",
        "LinkHovered",
        "WebPageJavascriptOnLoad",
        "executeCaretUpdateInternal"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'ZoomFactorChanged'
        QtMocHelpers::SignalData<void(float)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 3 },
        }}),
        // Signal 'LinkClicked'
        QtMocHelpers::SignalData<void(const QUrl &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Signal 'ShowStatusMessageRequest'
        QtMocHelpers::SignalData<void(const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Signal 'DocumentLoaded'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'GoToPreviewLocationRequest'
        QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'ViewProgress'
        QtMocHelpers::SignalData<void(int)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 2 },
        }}),
        // Slot 'ShowOverlay'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'HideOverlay'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'GetHTML'
        QtMocHelpers::SlotData<QString() const>(14, 2, QMC::AccessPublic, QMetaType::QString),
        // Slot 'ContinueCustomLoadAfterClear'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'ClearWebCache'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'UpdateFinishedState'
        QtMocHelpers::SlotData<void(bool)>(17, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Bool, 18 },
        }}),
        // Slot 'LoadingStarted'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'LoadingProgress'
        QtMocHelpers::SlotData<void(int)>(20, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Int, 21 },
        }}),
        // Slot 'LinkHovered'
        QtMocHelpers::SlotData<void(const QString &)>(22, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::QString, 6 },
        }}),
        // Slot 'WebPageJavascriptOnLoad'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'executeCaretUpdateInternal'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ViewPreview, qt_meta_tag_ZN11ViewPreviewE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject ViewPreview::staticMetaObject = { {
    QMetaObject::SuperData::link<QWebEngineView::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ViewPreviewE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ViewPreviewE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11ViewPreviewE_t>.metaTypes,
    nullptr
} };

void ViewPreview::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ViewPreview *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->ZoomFactorChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 1: _t->LinkClicked((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 2: _t->ShowStatusMessageRequest((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->DocumentLoaded(); break;
        case 4: _t->GoToPreviewLocationRequest(); break;
        case 5: _t->ViewProgress((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 6: _t->ShowOverlay(); break;
        case 7: _t->HideOverlay(); break;
        case 8: { QString _r = _t->GetHTML();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        case 9: _t->ContinueCustomLoadAfterClear(); break;
        case 10: _t->ClearWebCache(); break;
        case 11: _t->UpdateFinishedState((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->LoadingStarted(); break;
        case 13: _t->LoadingProgress((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 14: _t->LinkHovered((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 15: _t->WebPageJavascriptOnLoad(); break;
        case 16: _t->executeCaretUpdateInternal(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ViewPreview::*)(float )>(_a, &ViewPreview::ZoomFactorChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ViewPreview::*)(const QUrl & )>(_a, &ViewPreview::LinkClicked, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ViewPreview::*)(const QString & )>(_a, &ViewPreview::ShowStatusMessageRequest, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ViewPreview::*)()>(_a, &ViewPreview::DocumentLoaded, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ViewPreview::*)()>(_a, &ViewPreview::GoToPreviewLocationRequest, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ViewPreview::*)(int )>(_a, &ViewPreview::ViewProgress, 5))
            return;
    }
}

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

void *ViewPreview::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11ViewPreviewE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "Viewer"))
        return static_cast< Viewer*>(this);
    return QWebEngineView::qt_metacast(_clname);
}

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

// SIGNAL 0
void ViewPreview::ZoomFactorChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void ViewPreview::LinkClicked(const QUrl & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void ViewPreview::ShowStatusMessageRequest(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

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

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

// SIGNAL 5
void ViewPreview::ViewProgress(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
