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

#include "../../../../subtitlecomposer/src/gui/waveform/waveformwidget.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 'waveformwidget.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.2. 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_ZN16SubtitleComposer14WaveformWidgetE_t {};
} // unnamed namespace

template <> constexpr inline auto SubtitleComposer::WaveformWidget::qt_create_metaobjectdata<qt_meta_tag_ZN16SubtitleComposer14WaveformWidgetE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "SubtitleComposer::WaveformWidget",
        "doubleClick",
        "",
        "Time",
        "time",
        "middleMouseDown",
        "middleMouseMove",
        "middleMouseUp",
        "dragStart",
        "SubtitleLine*",
        "line",
        "DragPosition",
        "dragPosition",
        "dragEnd",
        "setSubtitle",
        "Subtitle*",
        "subtitle",
        "setAudioStream",
        "mediaFile",
        "audioStream",
        "setNullAudioStream",
        "msecVideoLength",
        "clearAudioStream",
        "setAutoscroll",
        "autoscroll",
        "setScrollPosition",
        "milliseconds",
        "onSubtitleChanged",
        "setTranslationMode",
        "enabled",
        "setShowTranslation",
        "showTranslation",
        "onPlayerPositionChanged",
        "seconds",
        "onScrollBarValueChanged",
        "value",
        "onHoverScrollTimeout"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'doubleClick'
        QtMocHelpers::SignalData<void(Time)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'middleMouseDown'
        QtMocHelpers::SignalData<void(Time)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'middleMouseMove'
        QtMocHelpers::SignalData<void(Time)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'middleMouseUp'
        QtMocHelpers::SignalData<void(Time)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'dragStart'
        QtMocHelpers::SignalData<void(SubtitleLine *, DragPosition)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 }, { 0x80000000 | 11, 12 },
        }}),
        // Signal 'dragEnd'
        QtMocHelpers::SignalData<void(SubtitleLine *, DragPosition)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 }, { 0x80000000 | 11, 12 },
        }}),
        // Slot 'setSubtitle'
        QtMocHelpers::SlotData<void(Subtitle *)>(14, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 15, 16 },
        }}),
        // Slot 'setSubtitle'
        QtMocHelpers::SlotData<void()>(14, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void),
        // Slot 'setAudioStream'
        QtMocHelpers::SlotData<void(const QString &, int)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 18 }, { QMetaType::Int, 19 },
        }}),
        // Slot 'setNullAudioStream'
        QtMocHelpers::SlotData<void(quint64)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::ULongLong, 21 },
        }}),
        // Slot 'clearAudioStream'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setAutoscroll'
        QtMocHelpers::SlotData<void(bool)>(23, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 24 },
        }}),
        // Slot 'setScrollPosition'
        QtMocHelpers::SlotData<void(double)>(25, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 26 },
        }}),
        // Slot 'onSubtitleChanged'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setTranslationMode'
        QtMocHelpers::SlotData<void(bool)>(28, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 29 },
        }}),
        // Slot 'setShowTranslation'
        QtMocHelpers::SlotData<void(bool)>(30, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 31 },
        }}),
        // Slot 'onPlayerPositionChanged'
        QtMocHelpers::SlotData<void(double)>(32, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Double, 33 },
        }}),
        // Slot 'onScrollBarValueChanged'
        QtMocHelpers::SlotData<void(int)>(34, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Int, 35 },
        }}),
        // Slot 'onHoverScrollTimeout'
        QtMocHelpers::SlotData<void()>(36, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<WaveformWidget, qt_meta_tag_ZN16SubtitleComposer14WaveformWidgetE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject SubtitleComposer::WaveformWidget::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16SubtitleComposer14WaveformWidgetE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16SubtitleComposer14WaveformWidgetE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16SubtitleComposer14WaveformWidgetE_t>.metaTypes,
    nullptr
} };

void SubtitleComposer::WaveformWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<WaveformWidget *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->doubleClick((*reinterpret_cast<std::add_pointer_t<Time>>(_a[1]))); break;
        case 1: _t->middleMouseDown((*reinterpret_cast<std::add_pointer_t<Time>>(_a[1]))); break;
        case 2: _t->middleMouseMove((*reinterpret_cast<std::add_pointer_t<Time>>(_a[1]))); break;
        case 3: _t->middleMouseUp((*reinterpret_cast<std::add_pointer_t<Time>>(_a[1]))); break;
        case 4: _t->dragStart((*reinterpret_cast<std::add_pointer_t<SubtitleLine*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<DragPosition>>(_a[2]))); break;
        case 5: _t->dragEnd((*reinterpret_cast<std::add_pointer_t<SubtitleLine*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<DragPosition>>(_a[2]))); break;
        case 6: _t->setSubtitle((*reinterpret_cast<std::add_pointer_t<Subtitle*>>(_a[1]))); break;
        case 7: _t->setSubtitle(); break;
        case 8: _t->setAudioStream((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 9: _t->setNullAudioStream((*reinterpret_cast<std::add_pointer_t<quint64>>(_a[1]))); break;
        case 10: _t->clearAudioStream(); break;
        case 11: _t->setAutoscroll((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 12: _t->setScrollPosition((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 13: _t->onSubtitleChanged(); break;
        case 14: _t->setTranslationMode((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 15: _t->setShowTranslation((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 16: _t->onPlayerPositionChanged((*reinterpret_cast<std::add_pointer_t<double>>(_a[1]))); break;
        case 17: _t->onScrollBarValueChanged((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 18: _t->onHoverScrollTimeout(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 4:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< SubtitleLine* >(); break;
            }
            break;
        case 5:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< SubtitleLine* >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Subtitle* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (WaveformWidget::*)(Time )>(_a, &WaveformWidget::doubleClick, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (WaveformWidget::*)(Time )>(_a, &WaveformWidget::middleMouseDown, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (WaveformWidget::*)(Time )>(_a, &WaveformWidget::middleMouseMove, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (WaveformWidget::*)(Time )>(_a, &WaveformWidget::middleMouseUp, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (WaveformWidget::*)(SubtitleLine * , DragPosition )>(_a, &WaveformWidget::dragStart, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (WaveformWidget::*)(SubtitleLine * , DragPosition )>(_a, &WaveformWidget::dragEnd, 5))
            return;
    }
}

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

void *SubtitleComposer::WaveformWidget::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16SubtitleComposer14WaveformWidgetE_t>.strings))
        return static_cast<void*>(this);
    return QWidget::qt_metacast(_clname);
}

int SubtitleComposer::WaveformWidget::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 < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 19)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 19;
    }
    return _id;
}

// SIGNAL 0
void SubtitleComposer::WaveformWidget::doubleClick(Time _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void SubtitleComposer::WaveformWidget::middleMouseDown(Time _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void SubtitleComposer::WaveformWidget::middleMouseMove(Time _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void SubtitleComposer::WaveformWidget::middleMouseUp(Time _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void SubtitleComposer::WaveformWidget::dragStart(SubtitleLine * _t1, DragPosition _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1, _t2);
}

// SIGNAL 5
void SubtitleComposer::WaveformWidget::dragEnd(SubtitleLine * _t1, DragPosition _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1, _t2);
}
QT_WARNING_POP
