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

#include "../../../../../../../../dde-file-manager/src/apps/dde-file-manager-preview/pluginpreviews/pdf-preview/sheetbrowser.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 'sheetbrowser.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.1. 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_ZN18plugin_filepreview12SheetBrowserE_t {};
} // unnamed namespace

template <> constexpr inline auto plugin_filepreview::SheetBrowser::qt_create_metaobjectdata<qt_meta_tag_ZN18plugin_filepreview12SheetBrowserE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "plugin_filepreview::SheetBrowser",
        "sigPageChanged",
        "",
        "page",
        "sigNeedPageFirst",
        "sigNeedPagePrev",
        "sigNeedPageNext",
        "sigNeedPageLast",
        "onInit",
        "onVerticalScrollBarValueChanged",
        "value",
        "onViewportChanged",
        "onRemoveDocSlideGesture"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'sigPageChanged'
        QtMocHelpers::SignalData<void(int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Signal 'sigNeedPageFirst'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sigNeedPagePrev'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sigNeedPageNext'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'sigNeedPageLast'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'onInit'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onVerticalScrollBarValueChanged'
        QtMocHelpers::SlotData<void(int)>(9, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 10 },
        }}),
        // Slot 'onViewportChanged'
        QtMocHelpers::SlotData<void()>(11, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onRemoveDocSlideGesture'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<SheetBrowser, qt_meta_tag_ZN18plugin_filepreview12SheetBrowserE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject plugin_filepreview::SheetBrowser::staticMetaObject = { {
    QMetaObject::SuperData::link<Dtk::Widget::DGraphicsView::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18plugin_filepreview12SheetBrowserE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18plugin_filepreview12SheetBrowserE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN18plugin_filepreview12SheetBrowserE_t>.metaTypes,
    nullptr
} };

void plugin_filepreview::SheetBrowser::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<SheetBrowser *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->sigPageChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 1: _t->sigNeedPageFirst(); break;
        case 2: _t->sigNeedPagePrev(); break;
        case 3: _t->sigNeedPageNext(); break;
        case 4: _t->sigNeedPageLast(); break;
        case 5: _t->onInit(); break;
        case 6: _t->onVerticalScrollBarValueChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 7: _t->onViewportChanged(); break;
        case 8: _t->onRemoveDocSlideGesture(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (SheetBrowser::*)(int )>(_a, &SheetBrowser::sigPageChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (SheetBrowser::*)()>(_a, &SheetBrowser::sigNeedPageFirst, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (SheetBrowser::*)()>(_a, &SheetBrowser::sigNeedPagePrev, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (SheetBrowser::*)()>(_a, &SheetBrowser::sigNeedPageNext, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (SheetBrowser::*)()>(_a, &SheetBrowser::sigNeedPageLast, 4))
            return;
    }
}

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

void *plugin_filepreview::SheetBrowser::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18plugin_filepreview12SheetBrowserE_t>.strings))
        return static_cast<void*>(this);
    return Dtk::Widget::DGraphicsView::qt_metacast(_clname);
}

int plugin_filepreview::SheetBrowser::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Dtk::Widget::DGraphicsView::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 9)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 9;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 9)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 9;
    }
    return _id;
}

// SIGNAL 0
void plugin_filepreview::SheetBrowser::sigPageChanged(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void plugin_filepreview::SheetBrowser::sigNeedPageFirst()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void plugin_filepreview::SheetBrowser::sigNeedPagePrev()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void plugin_filepreview::SheetBrowser::sigNeedPageNext()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void plugin_filepreview::SheetBrowser::sigNeedPageLast()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}
QT_WARNING_POP
