/****************************************************************************
** Meta object code from reading C++ file 'trackview.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 "../../../gui/trackview.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 'trackview.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_ZN9TrackViewE_t {};
} // unnamed namespace

template <> constexpr inline auto TrackView::qt_create_metaobjectdata<qt_meta_tag_ZN9TrackViewE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "TrackView",
        "selectCueFile",
        "",
        "Disc*",
        "disc",
        "showAudioMenu",
        "QPoint",
        "pos",
        "selectAudioFile",
        "audioFileNum",
        "selectCoverImage",
        "downloadInfo",
        "layoutChanged",
        "selectDisc",
        "const Disc*",
        "downloadStarted",
        "Disc",
        "downloadFinished",
        "update",
        "Track",
        "track",
        "updateAll",
        "headerContextMenu",
        "showHideColumn",
        "show",
        "showTrackMenu",
        "QModelIndex",
        "index",
        "QRect",
        "buttonRect",
        "audioButtonClicked",
        "emitSelectCoverImage",
        "Columns",
        "ColumnTracknum",
        "ColumnDuration",
        "ColumnTitle",
        "ColumnArtist",
        "ColumnAlbum",
        "ColumnComment",
        "ColumnDate",
        "ColumnGenre",
        "ColumnSongWriter",
        "ColumnFileName",
        "ColumnCatalog"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'selectCueFile'
        QtMocHelpers::SignalData<void(Disc *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'showAudioMenu'
        QtMocHelpers::SignalData<void(Disc *, const QPoint &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 6, 7 },
        }}),
        // Signal 'selectAudioFile'
        QtMocHelpers::SignalData<void(Disc *, int)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { QMetaType::Int, 9 },
        }}),
        // Signal 'selectCoverImage'
        QtMocHelpers::SignalData<void(Disc *)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'downloadInfo'
        QtMocHelpers::SignalData<void(Disc *)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'layoutChanged'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'selectDisc'
        QtMocHelpers::SlotData<void(const Disc *)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 4 },
        }}),
        // Slot 'downloadStarted'
        QtMocHelpers::SlotData<void(const Disc &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 4 },
        }}),
        // Slot 'downloadFinished'
        QtMocHelpers::SlotData<void(const Disc &)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 4 },
        }}),
        // Slot 'update'
        QtMocHelpers::SlotData<void(const Track &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 20 },
        }}),
        // Slot 'update'
        QtMocHelpers::SlotData<void(const Disc &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 4 },
        }}),
        // Slot 'updateAll'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'headerContextMenu'
        QtMocHelpers::SlotData<void(const QPoint &)>(22, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Slot 'showHideColumn'
        QtMocHelpers::SlotData<void(bool)>(23, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Bool, 24 },
        }}),
        // Slot 'showTrackMenu'
        QtMocHelpers::SlotData<void(const QModelIndex &, const QRect &)>(25, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 26, 27 }, { 0x80000000 | 28, 29 },
        }}),
        // Slot 'audioButtonClicked'
        QtMocHelpers::SlotData<void(const QModelIndex &, int, const QRect &)>(30, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 26, 27 }, { QMetaType::Int, 9 }, { 0x80000000 | 28, 29 },
        }}),
        // Slot 'emitSelectCoverImage'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(31, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 26, 27 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'Columns'
        QtMocHelpers::EnumData<enum Columns>(32, 32, QMC::EnumFlags{}).add({
            {   33, Columns::ColumnTracknum },
            {   34, Columns::ColumnDuration },
            {   35, Columns::ColumnTitle },
            {   36, Columns::ColumnArtist },
            {   37, Columns::ColumnAlbum },
            {   38, Columns::ColumnComment },
            {   39, Columns::ColumnDate },
            {   40, Columns::ColumnGenre },
            {   41, Columns::ColumnSongWriter },
            {   42, Columns::ColumnFileName },
            {   43, Columns::ColumnCatalog },
        }),
    };
    return QtMocHelpers::metaObjectData<TrackView, qt_meta_tag_ZN9TrackViewE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject TrackView::staticMetaObject = { {
    QMetaObject::SuperData::link<QTreeView::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9TrackViewE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9TrackViewE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9TrackViewE_t>.metaTypes,
    nullptr
} };

void TrackView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TrackView *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->selectCueFile((*reinterpret_cast<std::add_pointer_t<Disc*>>(_a[1]))); break;
        case 1: _t->showAudioMenu((*reinterpret_cast<std::add_pointer_t<Disc*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[2]))); break;
        case 2: _t->selectAudioFile((*reinterpret_cast<std::add_pointer_t<Disc*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 3: _t->selectCoverImage((*reinterpret_cast<std::add_pointer_t<Disc*>>(_a[1]))); break;
        case 4: _t->downloadInfo((*reinterpret_cast<std::add_pointer_t<Disc*>>(_a[1]))); break;
        case 5: _t->layoutChanged(); break;
        case 6: _t->selectDisc((*reinterpret_cast<std::add_pointer_t<const Disc*>>(_a[1]))); break;
        case 7: _t->downloadStarted((*reinterpret_cast<std::add_pointer_t<Disc>>(_a[1]))); break;
        case 8: _t->downloadFinished((*reinterpret_cast<std::add_pointer_t<Disc>>(_a[1]))); break;
        case 9: _t->update((*reinterpret_cast<std::add_pointer_t<Track>>(_a[1]))); break;
        case 10: _t->update((*reinterpret_cast<std::add_pointer_t<Disc>>(_a[1]))); break;
        case 11: _t->updateAll(); break;
        case 12: _t->headerContextMenu((*reinterpret_cast<std::add_pointer_t<QPoint>>(_a[1]))); break;
        case 13: _t->showHideColumn((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 14: _t->showTrackMenu((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QRect>>(_a[2]))); break;
        case 15: _t->audioButtonClicked((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QRect>>(_a[3]))); break;
        case 16: _t->emitSelectCoverImage((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (TrackView::*)(Disc * )>(_a, &TrackView::selectCueFile, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackView::*)(Disc * , const QPoint & )>(_a, &TrackView::showAudioMenu, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackView::*)(Disc * , int )>(_a, &TrackView::selectAudioFile, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackView::*)(Disc * )>(_a, &TrackView::selectCoverImage, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (TrackView::*)(Disc * )>(_a, &TrackView::downloadInfo, 4))
            return;
    }
}

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

void *TrackView::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9TrackViewE_t>.strings))
        return static_cast<void*>(this);
    return QTreeView::qt_metacast(_clname);
}

int TrackView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QTreeView::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 17)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 17;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 17)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 17;
    }
    return _id;
}

// SIGNAL 0
void TrackView::selectCueFile(Disc * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void TrackView::showAudioMenu(Disc * _t1, const QPoint & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void TrackView::selectAudioFile(Disc * _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void TrackView::selectCoverImage(Disc * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void TrackView::downloadInfo(Disc * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
namespace {
struct qt_meta_tag_ZN23TrackViewSelectionModelE_t {};
} // unnamed namespace

template <> constexpr inline auto TrackViewSelectionModel::qt_create_metaobjectdata<qt_meta_tag_ZN23TrackViewSelectionModelE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "TrackViewSelectionModel",
        "select",
        "",
        "QItemSelection",
        "selection",
        "SelectionFlags",
        "command"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'select'
        QtMocHelpers::SlotData<void(const QItemSelection &, SelectionFlags)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 5, 6 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<TrackViewSelectionModel, qt_meta_tag_ZN23TrackViewSelectionModelE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject TrackViewSelectionModel::staticMetaObject = { {
    QMetaObject::SuperData::link<QItemSelectionModel::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN23TrackViewSelectionModelE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN23TrackViewSelectionModelE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN23TrackViewSelectionModelE_t>.metaTypes,
    nullptr
} };

void TrackViewSelectionModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<TrackViewSelectionModel *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->select((*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<SelectionFlags>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 0:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QItemSelection >(); break;
            }
            break;
        }
    }
}

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

void *TrackViewSelectionModel::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN23TrackViewSelectionModelE_t>.strings))
        return static_cast<void*>(this);
    return QItemSelectionModel::qt_metacast(_clname);
}

int TrackViewSelectionModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QItemSelectionModel::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 1)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 1;
    }
    return _id;
}
QT_WARNING_POP
