/****************************************************************************
** Meta object code from reading C++ file 'ImagePreviewWidget.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 "../../../kphotoalbum-6.2.0/AnnotationDialog/ImagePreviewWidget.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 'ImagePreviewWidget.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_ZN16AnnotationDialog18ImagePreviewWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto AnnotationDialog::ImagePreviewWidget::qt_create_metaobjectdata<qt_meta_tag_ZN16AnnotationDialog18ImagePreviewWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "AnnotationDialog::ImagePreviewWidget",
        "imageRotated",
        "",
        "angle",
        "imageChanged",
        "DB::ImageInfo",
        "newImage",
        "indexChanged",
        "newIndex",
        "copyPrevClicked",
        "areaVisibilityChanged",
        "visible",
        "togglePreview",
        "slotNext",
        "slotPrev",
        "slotCopyPrevious",
        "slotDeleteImage",
        "rotateLeft",
        "rotateRight",
        "slotShowAreas",
        "show"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'imageRotated'
        QtMocHelpers::SignalData<void(int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Signal 'imageChanged'
        QtMocHelpers::SignalData<void(const DB::ImageInfo &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Signal 'indexChanged'
        QtMocHelpers::SignalData<void(int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 8 },
        }}),
        // Signal 'copyPrevClicked'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'areaVisibilityChanged'
        QtMocHelpers::SignalData<void(bool)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 11 },
        }}),
        // Signal 'togglePreview'
        QtMocHelpers::SignalData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotNext'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotPrev'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotCopyPrevious'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotDeleteImage'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'rotateLeft'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'rotateRight'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotShowAreas'
        QtMocHelpers::SlotData<void(bool)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 20 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<ImagePreviewWidget, qt_meta_tag_ZN16AnnotationDialog18ImagePreviewWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject AnnotationDialog::ImagePreviewWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16AnnotationDialog18ImagePreviewWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16AnnotationDialog18ImagePreviewWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16AnnotationDialog18ImagePreviewWidgetE_t>.metaTypes,
    nullptr
} };

void AnnotationDialog::ImagePreviewWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<ImagePreviewWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->imageRotated((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 1: _t->imageChanged((*reinterpret_cast<std::add_pointer_t<DB::ImageInfo>>(_a[1]))); break;
        case 2: _t->indexChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 3: _t->copyPrevClicked(); break;
        case 4: _t->areaVisibilityChanged((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 5: _t->togglePreview(); break;
        case 6: _t->slotNext(); break;
        case 7: _t->slotPrev(); break;
        case 8: _t->slotCopyPrevious(); break;
        case 9: _t->slotDeleteImage(); break;
        case 10: _t->rotateLeft(); break;
        case 11: _t->rotateRight(); break;
        case 12: _t->slotShowAreas((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (ImagePreviewWidget::*)(int )>(_a, &ImagePreviewWidget::imageRotated, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImagePreviewWidget::*)(const DB::ImageInfo & )>(_a, &ImagePreviewWidget::imageChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImagePreviewWidget::*)(int )>(_a, &ImagePreviewWidget::indexChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImagePreviewWidget::*)()>(_a, &ImagePreviewWidget::copyPrevClicked, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImagePreviewWidget::*)(bool )>(_a, &ImagePreviewWidget::areaVisibilityChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (ImagePreviewWidget::*)()>(_a, &ImagePreviewWidget::togglePreview, 5))
            return;
    }
}

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

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

int AnnotationDialog::ImagePreviewWidget::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 < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 13;
    }
    return _id;
}

// SIGNAL 0
void AnnotationDialog::ImagePreviewWidget::imageRotated(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void AnnotationDialog::ImagePreviewWidget::imageChanged(const DB::ImageInfo & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void AnnotationDialog::ImagePreviewWidget::indexChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void AnnotationDialog::ImagePreviewWidget::copyPrevClicked()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void AnnotationDialog::ImagePreviewWidget::areaVisibilityChanged(bool _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void AnnotationDialog::ImagePreviewWidget::togglePreview()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
