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

#include "../../../../src/qtbase-opensource-src-5.4.2/src/printsupport/widgets/qprintpreviewwidget.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qprintpreviewwidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.4.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
struct qt_meta_stringdata_QPrintPreviewWidget_t {
    QByteArrayData data[33];
    char stringdata[430];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QPrintPreviewWidget_t, stringdata) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QPrintPreviewWidget_t qt_meta_stringdata_QPrintPreviewWidget = {
    {
QT_MOC_LITERAL(0, 0, 19), // "QPrintPreviewWidget"
QT_MOC_LITERAL(1, 20, 14), // "paintRequested"
QT_MOC_LITERAL(2, 35, 0), // ""
QT_MOC_LITERAL(3, 36, 9), // "QPrinter*"
QT_MOC_LITERAL(4, 46, 7), // "printer"
QT_MOC_LITERAL(5, 54, 14), // "previewChanged"
QT_MOC_LITERAL(6, 69, 5), // "print"
QT_MOC_LITERAL(7, 75, 6), // "zoomIn"
QT_MOC_LITERAL(8, 82, 4), // "zoom"
QT_MOC_LITERAL(9, 87, 7), // "zoomOut"
QT_MOC_LITERAL(10, 95, 13), // "setZoomFactor"
QT_MOC_LITERAL(11, 109, 10), // "zoomFactor"
QT_MOC_LITERAL(12, 120, 14), // "setOrientation"
QT_MOC_LITERAL(13, 135, 21), // "QPrinter::Orientation"
QT_MOC_LITERAL(14, 157, 11), // "orientation"
QT_MOC_LITERAL(15, 169, 11), // "setViewMode"
QT_MOC_LITERAL(16, 181, 8), // "ViewMode"
QT_MOC_LITERAL(17, 190, 8), // "viewMode"
QT_MOC_LITERAL(18, 199, 11), // "setZoomMode"
QT_MOC_LITERAL(19, 211, 8), // "ZoomMode"
QT_MOC_LITERAL(20, 220, 8), // "zoomMode"
QT_MOC_LITERAL(21, 229, 14), // "setCurrentPage"
QT_MOC_LITERAL(22, 244, 10), // "pageNumber"
QT_MOC_LITERAL(23, 255, 10), // "fitToWidth"
QT_MOC_LITERAL(24, 266, 9), // "fitInView"
QT_MOC_LITERAL(25, 276, 23), // "setLandscapeOrientation"
QT_MOC_LITERAL(26, 300, 22), // "setPortraitOrientation"
QT_MOC_LITERAL(27, 323, 21), // "setSinglePageViewMode"
QT_MOC_LITERAL(28, 345, 22), // "setFacingPagesViewMode"
QT_MOC_LITERAL(29, 368, 19), // "setAllPagesViewMode"
QT_MOC_LITERAL(30, 388, 13), // "updatePreview"
QT_MOC_LITERAL(31, 402, 6), // "_q_fit"
QT_MOC_LITERAL(32, 409, 20) // "_q_updateCurrentPage"

    },
    "QPrintPreviewWidget\0paintRequested\0\0"
    "QPrinter*\0printer\0previewChanged\0print\0"
    "zoomIn\0zoom\0zoomOut\0setZoomFactor\0"
    "zoomFactor\0setOrientation\0"
    "QPrinter::Orientation\0orientation\0"
    "setViewMode\0ViewMode\0viewMode\0setZoomMode\0"
    "ZoomMode\0zoomMode\0setCurrentPage\0"
    "pageNumber\0fitToWidth\0fitInView\0"
    "setLandscapeOrientation\0setPortraitOrientation\0"
    "setSinglePageViewMode\0setFacingPagesViewMode\0"
    "setAllPagesViewMode\0updatePreview\0"
    "_q_fit\0_q_updateCurrentPage"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QPrintPreviewWidget[] = {

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

 // signals: name, argc, parameters, tag, flags
       1,    1,  124,    2, 0x06 /* Public */,
       5,    0,  127,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       6,    0,  128,    2, 0x0a /* Public */,
       7,    1,  129,    2, 0x0a /* Public */,
       7,    0,  132,    2, 0x2a /* Public | MethodCloned */,
       9,    1,  133,    2, 0x0a /* Public */,
       9,    0,  136,    2, 0x2a /* Public | MethodCloned */,
      10,    1,  137,    2, 0x0a /* Public */,
      12,    1,  140,    2, 0x0a /* Public */,
      15,    1,  143,    2, 0x0a /* Public */,
      18,    1,  146,    2, 0x0a /* Public */,
      21,    1,  149,    2, 0x0a /* Public */,
      23,    0,  152,    2, 0x0a /* Public */,
      24,    0,  153,    2, 0x0a /* Public */,
      25,    0,  154,    2, 0x0a /* Public */,
      26,    0,  155,    2, 0x0a /* Public */,
      27,    0,  156,    2, 0x0a /* Public */,
      28,    0,  157,    2, 0x0a /* Public */,
      29,    0,  158,    2, 0x0a /* Public */,
      30,    0,  159,    2, 0x0a /* Public */,
      31,    0,  160,    2, 0x08 /* Private */,
      32,    0,  161,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, 0x80000000 | 3,    4,
    QMetaType::Void,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void, QMetaType::QReal,    8,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QReal,    8,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QReal,   11,
    QMetaType::Void, 0x80000000 | 13,   14,
    QMetaType::Void, 0x80000000 | 16,   17,
    QMetaType::Void, 0x80000000 | 19,   20,
    QMetaType::Void, QMetaType::Int,   22,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,

       0        // eod
};

void QPrintPreviewWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        QPrintPreviewWidget *_t = static_cast<QPrintPreviewWidget *>(_o);
        switch (_id) {
        case 0: _t->paintRequested((*reinterpret_cast< QPrinter*(*)>(_a[1]))); break;
        case 1: _t->previewChanged(); break;
        case 2: _t->print(); break;
        case 3: _t->zoomIn((*reinterpret_cast< qreal(*)>(_a[1]))); break;
        case 4: _t->zoomIn(); break;
        case 5: _t->zoomOut((*reinterpret_cast< qreal(*)>(_a[1]))); break;
        case 6: _t->zoomOut(); break;
        case 7: _t->setZoomFactor((*reinterpret_cast< qreal(*)>(_a[1]))); break;
        case 8: _t->setOrientation((*reinterpret_cast< QPrinter::Orientation(*)>(_a[1]))); break;
        case 9: _t->setViewMode((*reinterpret_cast< ViewMode(*)>(_a[1]))); break;
        case 10: _t->setZoomMode((*reinterpret_cast< ZoomMode(*)>(_a[1]))); break;
        case 11: _t->setCurrentPage((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 12: _t->fitToWidth(); break;
        case 13: _t->fitInView(); break;
        case 14: _t->setLandscapeOrientation(); break;
        case 15: _t->setPortraitOrientation(); break;
        case 16: _t->setSinglePageViewMode(); break;
        case 17: _t->setFacingPagesViewMode(); break;
        case 18: _t->setAllPagesViewMode(); break;
        case 19: _t->updatePreview(); break;
        case 20: _t->d_func()->_q_fit(); break;
        case 21: _t->d_func()->_q_updateCurrentPage(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        void **func = reinterpret_cast<void **>(_a[1]);
        {
            typedef void (QPrintPreviewWidget::*_t)(QPrinter * );
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QPrintPreviewWidget::paintRequested)) {
                *result = 0;
            }
        }
        {
            typedef void (QPrintPreviewWidget::*_t)();
            if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&QPrintPreviewWidget::previewChanged)) {
                *result = 1;
            }
        }
    }
}

const QMetaObject QPrintPreviewWidget::staticMetaObject = {
    { &QWidget::staticMetaObject, qt_meta_stringdata_QPrintPreviewWidget.data,
      qt_meta_data_QPrintPreviewWidget,  qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
};


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

void *QPrintPreviewWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return Q_NULLPTR;
    if (!strcmp(_clname, qt_meta_stringdata_QPrintPreviewWidget.stringdata))
        return static_cast<void*>(const_cast< QPrintPreviewWidget*>(this));
    return QWidget::qt_metacast(_clname);
}

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

// SIGNAL 0
void QPrintPreviewWidget::paintRequested(QPrinter * _t1)
{
    void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void QPrintPreviewWidget::previewChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
}
QT_END_MOC_NAMESPACE
