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

#include "../src/Widgets/PreviewWidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'PreviewWidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.9.4. 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_PreviewWidget_t {
    QByteArrayData data[26];
    char stringdata0[376];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_PreviewWidget_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_PreviewWidget_t qt_meta_stringdata_PreviewWidget = {
    {
QT_MOC_LITERAL(0, 0, 13), // "PreviewWidget"
QT_MOC_LITERAL(1, 14, 28), // "previewVisibleRectIsChanging"
QT_MOC_LITERAL(2, 43, 0), // ""
QT_MOC_LITERAL(3, 44, 22), // "previewUpdateRequested"
QT_MOC_LITERAL(4, 67, 11), // "zoomChanged"
QT_MOC_LITERAL(5, 79, 4), // "zoom"
QT_MOC_LITERAL(6, 84, 16), // "abortUpdateTimer"
QT_MOC_LITERAL(7, 101, 17), // "sendUpdateRequest"
QT_MOC_LITERAL(8, 119, 25), // "onMouseTranslationInImage"
QT_MOC_LITERAL(9, 145, 5), // "shift"
QT_MOC_LITERAL(10, 151, 6), // "zoomIn"
QT_MOC_LITERAL(11, 158, 7), // "zoomOut"
QT_MOC_LITERAL(12, 166, 13), // "zoomFullImage"
QT_MOC_LITERAL(13, 180, 5), // "steps"
QT_MOC_LITERAL(14, 186, 12), // "setZoomLevel"
QT_MOC_LITERAL(15, 199, 16), // "setPreviewFactor"
QT_MOC_LITERAL(16, 216, 12), // "filterFactor"
QT_MOC_LITERAL(17, 229, 5), // "reset"
QT_MOC_LITERAL(18, 235, 20), // "displayOriginalImage"
QT_MOC_LITERAL(19, 256, 26), // "onPreviewParametersChanged"
QT_MOC_LITERAL(20, 283, 22), // "invalidateSavedPreview"
QT_MOC_LITERAL(21, 306, 14), // "restorePreview"
QT_MOC_LITERAL(22, 321, 16), // "enableRightClick"
QT_MOC_LITERAL(23, 338, 17), // "disableRightClick"
QT_MOC_LITERAL(24, 356, 16), // "onPreviewToggled"
QT_MOC_LITERAL(25, 373, 2) // "on"

    },
    "PreviewWidget\0previewVisibleRectIsChanging\0"
    "\0previewUpdateRequested\0zoomChanged\0"
    "zoom\0abortUpdateTimer\0sendUpdateRequest\0"
    "onMouseTranslationInImage\0shift\0zoomIn\0"
    "zoomOut\0zoomFullImage\0steps\0setZoomLevel\0"
    "setPreviewFactor\0filterFactor\0reset\0"
    "displayOriginalImage\0onPreviewParametersChanged\0"
    "invalidateSavedPreview\0restorePreview\0"
    "enableRightClick\0disableRightClick\0"
    "onPreviewToggled\0on"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_PreviewWidget[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    0,  114,    2, 0x06 /* Public */,
       3,    0,  115,    2, 0x06 /* Public */,
       4,    1,  116,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    0,  119,    2, 0x0a /* Public */,
       7,    0,  120,    2, 0x0a /* Public */,
       8,    1,  121,    2, 0x0a /* Public */,
      10,    0,  124,    2, 0x0a /* Public */,
      11,    0,  125,    2, 0x0a /* Public */,
      12,    0,  126,    2, 0x0a /* Public */,
      10,    2,  127,    2, 0x0a /* Public */,
      11,    2,  132,    2, 0x0a /* Public */,
      14,    1,  137,    2, 0x0a /* Public */,
      15,    2,  140,    2, 0x0a /* Public */,
      18,    0,  145,    2, 0x0a /* Public */,
      19,    0,  146,    2, 0x0a /* Public */,
      20,    0,  147,    2, 0x0a /* Public */,
      21,    0,  148,    2, 0x0a /* Public */,
      22,    0,  149,    2, 0x0a /* Public */,
      23,    0,  150,    2, 0x0a /* Public */,
      24,    1,  151,    2, 0x0a /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Double,    5,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QPoint,    9,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QPoint, QMetaType::Int,    2,   13,
    QMetaType::Void, QMetaType::QPoint, QMetaType::Int,    2,   13,
    QMetaType::Void, QMetaType::Double,    5,
    QMetaType::Void, QMetaType::Float, QMetaType::Bool,   16,   17,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   25,

       0        // eod
};

void PreviewWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        PreviewWidget *_t = static_cast<PreviewWidget *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->previewVisibleRectIsChanging(); break;
        case 1: _t->previewUpdateRequested(); break;
        case 2: _t->zoomChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
        case 3: _t->abortUpdateTimer(); break;
        case 4: _t->sendUpdateRequest(); break;
        case 5: _t->onMouseTranslationInImage((*reinterpret_cast< QPoint(*)>(_a[1]))); break;
        case 6: _t->zoomIn(); break;
        case 7: _t->zoomOut(); break;
        case 8: _t->zoomFullImage(); break;
        case 9: _t->zoomIn((*reinterpret_cast< QPoint(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 10: _t->zoomOut((*reinterpret_cast< QPoint(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break;
        case 11: _t->setZoomLevel((*reinterpret_cast< double(*)>(_a[1]))); break;
        case 12: _t->setPreviewFactor((*reinterpret_cast< float(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
        case 13: _t->displayOriginalImage(); break;
        case 14: _t->onPreviewParametersChanged(); break;
        case 15: _t->invalidateSavedPreview(); break;
        case 16: _t->restorePreview(); break;
        case 17: _t->enableRightClick(); break;
        case 18: _t->disableRightClick(); break;
        case 19: _t->onPreviewToggled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            typedef void (PreviewWidget::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PreviewWidget::previewVisibleRectIsChanging)) {
                *result = 0;
                return;
            }
        }
        {
            typedef void (PreviewWidget::*_t)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PreviewWidget::previewUpdateRequested)) {
                *result = 1;
                return;
            }
        }
        {
            typedef void (PreviewWidget::*_t)(double );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&PreviewWidget::zoomChanged)) {
                *result = 2;
                return;
            }
        }
    }
}

const QMetaObject PreviewWidget::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_PreviewWidget.data,
      qt_meta_data_PreviewWidget,  qt_static_metacall, nullptr, nullptr}
};


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

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

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

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

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

// SIGNAL 2
void PreviewWidget::zoomChanged(double _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 2, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
