/****************************************************************************
** Meta object code from reading C++ file 'CollectionTreeView.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 "../../../../amarok-3.3.3/src/browsers/CollectionTreeView.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 'CollectionTreeView.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_ZN18CollectionTreeViewE_t {};
} // unnamed namespace

template <> constexpr inline auto CollectionTreeView::qt_create_metaobjectdata<qt_meta_tag_ZN18CollectionTreeViewE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "CollectionTreeView",
        "addingFilteredTracksDone",
        "",
        "itemSelected",
        "CollectionTreeItem*",
        "item",
        "leavingTree",
        "slotSetFilter",
        "filter",
        "slotAddFilteredTracksToPlaylist",
        "playChildTracksSlot",
        "Meta::TrackList",
        "list",
        "selectionChanged",
        "QItemSelection",
        "selected",
        "deselected",
        "slotCollapsed",
        "QModelIndex",
        "index",
        "slotExpanded",
        "slotExpandIndex",
        "slotCheckAutoExpand",
        "reallyExpand",
        "slotCheckAutoExpandReally",
        "slotReplacePlaylistWithChildTracks",
        "slotAppendChildTracks",
        "slotQueueChildTracks",
        "slotEditTracks",
        "slotCopyTracks",
        "slotMoveTracks",
        "slotTrashTracks",
        "slotDeleteTracks",
        "slotOrganize"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'addingFilteredTracksDone'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'itemSelected'
        QtMocHelpers::SignalData<void(CollectionTreeItem *)>(3, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 4, 5 },
        }}),
        // Signal 'leavingTree'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'slotSetFilter'
        QtMocHelpers::SlotData<void(const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'slotAddFilteredTracksToPlaylist'
        QtMocHelpers::SlotData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'playChildTracksSlot'
        QtMocHelpers::SlotData<void(Meta::TrackList)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'selectionChanged'
        QtMocHelpers::SlotData<void(const QItemSelection &, const QItemSelection &)>(13, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 14, 15 }, { 0x80000000 | 14, 16 },
        }}),
        // Slot 'slotCollapsed'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(17, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 18, 19 },
        }}),
        // Slot 'slotExpanded'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(20, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 18, 19 },
        }}),
        // Slot 'slotExpandIndex'
        QtMocHelpers::SlotData<void(const QModelIndex &)>(21, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 18, 19 },
        }}),
        // Slot 'slotCheckAutoExpand'
        QtMocHelpers::SlotData<void(bool)>(22, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Bool, 23 },
        }}),
        // Slot 'slotCheckAutoExpand'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessProtected | QMC::MethodCloned, QMetaType::Void),
        // Slot 'slotCheckAutoExpandReally'
        QtMocHelpers::SlotData<void()>(24, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotReplacePlaylistWithChildTracks'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotAppendChildTracks'
        QtMocHelpers::SlotData<void()>(26, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotQueueChildTracks'
        QtMocHelpers::SlotData<void()>(27, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotEditTracks'
        QtMocHelpers::SlotData<void()>(28, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotCopyTracks'
        QtMocHelpers::SlotData<void()>(29, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotMoveTracks'
        QtMocHelpers::SlotData<void()>(30, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotTrashTracks'
        QtMocHelpers::SlotData<void()>(31, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotDeleteTracks'
        QtMocHelpers::SlotData<void()>(32, 2, QMC::AccessProtected, QMetaType::Void),
        // Slot 'slotOrganize'
        QtMocHelpers::SlotData<void()>(33, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<CollectionTreeView, qt_meta_tag_ZN18CollectionTreeViewE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject CollectionTreeView::staticMetaObject = { {
    QMetaObject::SuperData::link<Amarok::PrettyTreeView::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18CollectionTreeViewE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18CollectionTreeViewE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN18CollectionTreeViewE_t>.metaTypes,
    nullptr
} };

void CollectionTreeView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<CollectionTreeView *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->addingFilteredTracksDone(); break;
        case 1: _t->itemSelected((*reinterpret_cast<std::add_pointer_t<CollectionTreeItem*>>(_a[1]))); break;
        case 2: _t->leavingTree(); break;
        case 3: _t->slotSetFilter((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->slotAddFilteredTracksToPlaylist(); break;
        case 5: _t->playChildTracksSlot((*reinterpret_cast<std::add_pointer_t<Meta::TrackList>>(_a[1]))); break;
        case 6: _t->selectionChanged((*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QItemSelection>>(_a[2]))); break;
        case 7: _t->slotCollapsed((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 8: _t->slotExpanded((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 9: _t->slotExpandIndex((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 10: _t->slotCheckAutoExpand((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 11: _t->slotCheckAutoExpand(); break;
        case 12: _t->slotCheckAutoExpandReally(); break;
        case 13: _t->slotReplacePlaylistWithChildTracks(); break;
        case 14: _t->slotAppendChildTracks(); break;
        case 15: _t->slotQueueChildTracks(); break;
        case 16: _t->slotEditTracks(); break;
        case 17: _t->slotCopyTracks(); break;
        case 18: _t->slotMoveTracks(); break;
        case 19: _t->slotTrashTracks(); break;
        case 20: _t->slotDeleteTracks(); break;
        case 21: _t->slotOrganize(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 1:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< CollectionTreeItem* >(); break;
            }
            break;
        case 6:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 1:
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QItemSelection >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (CollectionTreeView::*)()>(_a, &CollectionTreeView::addingFilteredTracksDone, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionTreeView::*)(CollectionTreeItem * )>(_a, &CollectionTreeView::itemSelected, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (CollectionTreeView::*)()>(_a, &CollectionTreeView::leavingTree, 2))
            return;
    }
}

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

void *CollectionTreeView::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18CollectionTreeViewE_t>.strings))
        return static_cast<void*>(this);
    return Amarok::PrettyTreeView::qt_metacast(_clname);
}

int CollectionTreeView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Amarok::PrettyTreeView::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;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 22)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 22;
    }
    return _id;
}

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

// SIGNAL 1
void CollectionTreeView::itemSelected(CollectionTreeItem * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void CollectionTreeView::leavingTree()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}
QT_WARNING_POP
