/****************************************************************************
** Meta object code from reading C++ file 'PreviewWidget.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 "../../../gmic-krita/gmic-qt/src/Widgets/PreviewWidget.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 'PreviewWidget.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_ZN6GmicQt13PreviewWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto GmicQt::PreviewWidget::qt_create_metaobjectdata<qt_meta_tag_ZN6GmicQt13PreviewWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "GmicQt::PreviewWidget",
        "previewVisibleRectIsChanging",
        "",
        "previewUpdateRequested",
        "keypointPositionsChanged",
        "flags",
        "time",
        "zoomChanged",
        "zoom",
        "abortUpdateTimer",
        "sendUpdateRequest",
        "onMouseTranslationInImage",
        "QPoint",
        "shift",
        "zoomIn",
        "zoomOut",
        "zoomFullImage",
        "steps",
        "setZoomLevel",
        "setPreviewFactor",
        "filterFactor",
        "reset",
        "displayOriginalImage",
        "onPreviewParametersChanged",
        "invalidateSavedPreview",
        "restorePreview",
        "enableRightClick",
        "disableRightClick",
        "onPreviewToggled",
        "on",
        "setPreviewType",
        "PreviewType",
        "previewType"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'previewVisibleRectIsChanging'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'previewUpdateRequested'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'keypointPositionsChanged'
        QtMocHelpers::SignalData<void(unsigned int, unsigned long)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::UInt, 5 }, { QMetaType::ULong, 6 },
        }}),
        // Signal 'zoomChanged'
        QtMocHelpers::SignalData<void(double)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 8 },
        }}),
        // Slot 'abortUpdateTimer'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'sendUpdateRequest'
        QtMocHelpers::SlotData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onMouseTranslationInImage'
        QtMocHelpers::SlotData<void(QPoint)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'zoomIn'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'zoomOut'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'zoomFullImage'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'zoomIn'
        QtMocHelpers::SlotData<void(QPoint, int)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 2 }, { QMetaType::Int, 17 },
        }}),
        // Slot 'zoomOut'
        QtMocHelpers::SlotData<void(QPoint, int)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 2 }, { QMetaType::Int, 17 },
        }}),
        // Slot 'setZoomLevel'
        QtMocHelpers::SlotData<void(double)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 8 },
        }}),
        // Slot 'setPreviewFactor'
        QtMocHelpers::SlotData<void(float, bool)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 20 }, { QMetaType::Bool, 21 },
        }}),
        // Slot 'displayOriginalImage'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onPreviewParametersChanged'
        QtMocHelpers::SlotData<void()>(23, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'invalidateSavedPreview'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'restorePreview'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'enableRightClick'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'disableRightClick'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onPreviewToggled'
        QtMocHelpers::SlotData<void(bool)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 29 },
        }}),
        // Slot 'setPreviewType'
        QtMocHelpers::SlotData<void(enum PreviewType)>(30, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 31, 32 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PreviewWidget, qt_meta_tag_ZN6GmicQt13PreviewWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject GmicQt::PreviewWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6GmicQt13PreviewWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6GmicQt13PreviewWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN6GmicQt13PreviewWidgetE_t>.metaTypes,
    nullptr
} };

void GmicQt::PreviewWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PreviewWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->previewVisibleRectIsChanging(); break;
        case 1: _t->previewUpdateRequested(); break;
        case 2: _t->keypointPositionsChanged((*reinterpret_cast<std::add_pointer_t<uint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<ulong>>(_a[2]))); break;
        case 3: _t->zoomChanged((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 4: _t->abortUpdateTimer(); break;
        case 5: _t->sendUpdateRequest(); break;
        case 6: _t->onMouseTranslationInImage((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 7: _t->zoomIn(); break;
        case 8: _t->zoomOut(); break;
        case 9: _t->zoomFullImage(); break;
        case 10: _t->zoomIn((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 11: _t->zoomOut((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 12: _t->setZoomLevel((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 13: _t->setPreviewFactor((*reinterpret_cast<std::add_pointer_t<float>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 14: _t->displayOriginalImage(); break;
        case 15: _t->onPreviewParametersChanged(); break;
        case 16: _t->invalidateSavedPreview(); break;
        case 17: _t->restorePreview(); break;
        case 18: _t->enableRightClick(); break;
        case 19: _t->disableRightClick(); break;
        case 20: _t->onPreviewToggled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 21: _t->setPreviewType((*reinterpret_cast<std::add_pointer_t<enum PreviewType>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PreviewWidget::*)()>(_a, &PreviewWidget::previewVisibleRectIsChanging, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewWidget::*)()>(_a, &PreviewWidget::previewUpdateRequested, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewWidget::*)(unsigned int , unsigned long )>(_a, &PreviewWidget::keypointPositionsChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewWidget::*)(double )>(_a, &PreviewWidget::zoomChanged, 3))
            return;
    }
}

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

void *GmicQt::PreviewWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN6GmicQt13PreviewWidgetE_t>.strings))
        return static_cast<void*>(this);
    return QWidget::qt_metacast(_clname);
}

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

// SIGNAL 0
void GmicQt::PreviewWidget::previewVisibleRectIsChanging()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void GmicQt::PreviewWidget::previewUpdateRequested()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void GmicQt::PreviewWidget::keypointPositionsChanged(unsigned int _t1, unsigned long _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void GmicQt::PreviewWidget::zoomChanged(double _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
