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

#include "../../src/gwenview-17.08.3/lib/thumbnailview/previewitemdelegate.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'previewitemdelegate.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.2. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Gwenview__PreviewItemDelegate_t {
    QByteArrayData data[15];
    char stringdata0[321];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_Gwenview__PreviewItemDelegate_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_Gwenview__PreviewItemDelegate_t qt_meta_stringdata_Gwenview__PreviewItemDelegate = {
    {
QT_MOC_LITERAL(0, 0, 29), // "Gwenview::PreviewItemDelegate"
QT_MOC_LITERAL(1, 30, 21), // "saveDocumentRequested"
QT_MOC_LITERAL(2, 52, 0), // ""
QT_MOC_LITERAL(3, 53, 27), // "rotateDocumentLeftRequested"
QT_MOC_LITERAL(4, 81, 28), // "rotateDocumentRightRequested"
QT_MOC_LITERAL(5, 110, 33), // "showDocumentInFullScreenReque..."
QT_MOC_LITERAL(6, 144, 26), // "setDocumentRatingRequested"
QT_MOC_LITERAL(7, 171, 6), // "rating"
QT_MOC_LITERAL(8, 178, 16), // "setThumbnailSize"
QT_MOC_LITERAL(9, 195, 15), // "slotSaveClicked"
QT_MOC_LITERAL(10, 211, 21), // "slotRotateLeftClicked"
QT_MOC_LITERAL(11, 233, 22), // "slotRotateRightClicked"
QT_MOC_LITERAL(12, 256, 21), // "slotFullScreenClicked"
QT_MOC_LITERAL(13, 278, 26), // "slotToggleSelectionClicked"
QT_MOC_LITERAL(14, 305, 15) // "slotRowsChanged"

    },
    "Gwenview::PreviewItemDelegate\0"
    "saveDocumentRequested\0\0"
    "rotateDocumentLeftRequested\0"
    "rotateDocumentRightRequested\0"
    "showDocumentInFullScreenRequested\0"
    "setDocumentRatingRequested\0rating\0"
    "setThumbnailSize\0slotSaveClicked\0"
    "slotRotateLeftClicked\0slotRotateRightClicked\0"
    "slotFullScreenClicked\0slotToggleSelectionClicked\0"
    "slotRowsChanged"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_Gwenview__PreviewItemDelegate[] = {

 // content:
       7,       // revision
       0,       // classname
       0,    0, // classinfo
      12,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       5,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    1,   74,    2, 0x06 /* Public */,
       3,    1,   77,    2, 0x06 /* Public */,
       4,    1,   80,    2, 0x06 /* Public */,
       5,    1,   83,    2, 0x06 /* Public */,
       6,    2,   86,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    1,   91,    2, 0x08 /* Private */,
       9,    0,   94,    2, 0x08 /* Private */,
      10,    0,   95,    2, 0x08 /* Private */,
      11,    0,   96,    2, 0x08 /* Private */,
      12,    0,   97,    2, 0x08 /* Private */,
      13,    0,   98,    2, 0x08 /* Private */,
      14,    0,   99,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::QUrl,    2,
    QMetaType::Void, QMetaType::QUrl,    2,
    QMetaType::Void, QMetaType::QUrl,    2,
    QMetaType::Void, QMetaType::QUrl,    2,
    QMetaType::Void, QMetaType::QUrl, QMetaType::Int,    2,    7,

 // slots: parameters
    QMetaType::Void, QMetaType::QSize,    2,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

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

const QMetaObject Gwenview::PreviewItemDelegate::staticMetaObject = {
    { &QItemDelegate::staticMetaObject, qt_meta_stringdata_Gwenview__PreviewItemDelegate.data,
      qt_meta_data_Gwenview__PreviewItemDelegate,  qt_static_metacall, nullptr, nullptr}
};


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_meta_stringdata_Gwenview__PreviewItemDelegate.stringdata0))
        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 < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 12;
    }
    return _id;
}

// SIGNAL 0
void Gwenview::PreviewItemDelegate::saveDocumentRequested(const QUrl & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void Gwenview::PreviewItemDelegate::rotateDocumentLeftRequested(const QUrl & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}

// SIGNAL 2
void Gwenview::PreviewItemDelegate::rotateDocumentRightRequested(const QUrl & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}

// SIGNAL 3
void Gwenview::PreviewItemDelegate::showDocumentInFullScreenRequested(const QUrl & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 3, _a);
}

// SIGNAL 4
void Gwenview::PreviewItemDelegate::setDocumentRatingRequested(const QUrl & _t1, int _t2)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
    QMetaObject::activate(this, &staticMetaObject, 4, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
