/****************************************************************************
** Meta object code from reading C++ file 'previewitemdelegate.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 "../../../../gwenview-26.07.80/lib/thumbnailview/previewitemdelegate.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 'previewitemdelegate.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_ZN8Gwenview19PreviewItemDelegateE_t {};
} // unnamed namespace

template <> constexpr inline auto Gwenview::PreviewItemDelegate::qt_create_metaobjectdata<qt_meta_tag_ZN8Gwenview19PreviewItemDelegateE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Gwenview::PreviewItemDelegate",
        "saveDocumentRequested",
        "",
        "QUrl",
        "rotateDocumentLeftRequested",
        "rotateDocumentRightRequested",
        "showDocumentInFullScreenRequested",
        "setDocumentRatingRequested",
        "rating",
        "updateIndexUnderMouse",
        "setThumbnailSize",
        "QSize",
        "slotSaveClicked",
        "slotRotateLeftClicked",
        "slotRotateRightClicked",
        "slotFullScreenClicked",
        "slotToggleSelectionClicked",
        "slotRowsChanged"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'saveDocumentRequested'
        QtMocHelpers::SignalData<void(const QUrl &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'rotateDocumentLeftRequested'
        QtMocHelpers::SignalData<void(const QUrl &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'rotateDocumentRightRequested'
        QtMocHelpers::SignalData<void(const QUrl &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'showDocumentInFullScreenRequested'
        QtMocHelpers::SignalData<void(const QUrl &)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Signal 'setDocumentRatingRequested'
        QtMocHelpers::SignalData<void(const QUrl &, int)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 }, { QMetaType::Int, 8 },
        }}),
        // Slot 'updateIndexUnderMouse'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'setThumbnailSize'
        QtMocHelpers::SlotData<void(const QSize &)>(10, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 11, 2 },
        }}),
        // Slot 'slotSaveClicked'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotRotateLeftClicked'
        QtMocHelpers::SlotData<void()>(13, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotRotateRightClicked'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotFullScreenClicked'
        QtMocHelpers::SlotData<void()>(15, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotToggleSelectionClicked'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'slotRowsChanged'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PreviewItemDelegate, qt_meta_tag_ZN8Gwenview19PreviewItemDelegateE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Gwenview::PreviewItemDelegate::staticMetaObject = { {
    QMetaObject::SuperData::link<QItemDelegate::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Gwenview19PreviewItemDelegateE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Gwenview19PreviewItemDelegateE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN8Gwenview19PreviewItemDelegateE_t>.metaTypes,
    nullptr
} };

void Gwenview::PreviewItemDelegate::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PreviewItemDelegate *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->saveDocumentRequested((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 1: _t->rotateDocumentLeftRequested((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 2: _t->rotateDocumentRightRequested((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 3: _t->showDocumentInFullScreenRequested((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 4: _t->setDocumentRatingRequested((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 5: _t->updateIndexUnderMouse(); break;
        case 6: _t->setThumbnailSize((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1]))); break;
        case 7: _t->slotSaveClicked(); break;
        case 8: _t->slotRotateLeftClicked(); break;
        case 9: _t->slotRotateRightClicked(); break;
        case 10: _t->slotFullScreenClicked(); break;
        case 11: _t->slotToggleSelectionClicked(); break;
        case 12: _t->slotRowsChanged(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PreviewItemDelegate::*)(const QUrl & )>(_a, &PreviewItemDelegate::saveDocumentRequested, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewItemDelegate::*)(const QUrl & )>(_a, &PreviewItemDelegate::rotateDocumentLeftRequested, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewItemDelegate::*)(const QUrl & )>(_a, &PreviewItemDelegate::rotateDocumentRightRequested, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewItemDelegate::*)(const QUrl & )>(_a, &PreviewItemDelegate::showDocumentInFullScreenRequested, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (PreviewItemDelegate::*)(const QUrl & , int )>(_a, &PreviewItemDelegate::setDocumentRatingRequested, 4))
            return;
    }
}

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

void *Gwenview::PreviewItemDelegate::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN8Gwenview19PreviewItemDelegateE_t>.strings))
        return static_cast<void*>(this);
    return QItemDelegate::qt_metacast(_clname);
}

int Gwenview::PreviewItemDelegate::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QItemDelegate::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 Gwenview::PreviewItemDelegate::saveDocumentRequested(const QUrl & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

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

// SIGNAL 2
void Gwenview::PreviewItemDelegate::rotateDocumentRightRequested(const QUrl & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Gwenview::PreviewItemDelegate::showDocumentInFullScreenRequested(const QUrl & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Gwenview::PreviewItemDelegate::setDocumentRatingRequested(const QUrl & _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}
QT_WARNING_POP
