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

template <> constexpr inline auto FileTreeView::qt_create_metaobjectdata<qt_meta_tag_ZN12FileTreeViewE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "FileTreeView",
        "priorityChanged",
        "",
        "file_indices_t",
        "file_indices",
        "priority",
        "wantedChanged",
        "wanted",
        "pathEdited",
        "old_path",
        "new_name",
        "openRequested",
        "path",
        "onClicked",
        "QModelIndex",
        "index",
        "checkSelectedItems",
        "uncheckSelectedItems",
        "onlyCheckSelectedItems",
        "setSelectedItemsPriority",
        "openSelectedItem",
        "renameSelectedItem",
        "refreshContextMenuActionsSensitivity"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'priorityChanged'
        QtMocHelpers::SignalData<void(file_indices_t const &, int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { QMetaType::Int, 5 },
        }}),
        // Signal 'wantedChanged'
        QtMocHelpers::SignalData<void(file_indices_t const &, bool)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { QMetaType::Bool, 7 },
        }}),
        // Signal 'pathEdited'
        QtMocHelpers::SignalData<void(QString const &, QString const &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 9 }, { QMetaType::QString, 10 },
        }}),
        // Signal 'openRequested'
        QtMocHelpers::SignalData<void(QString const &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 12 },
        }}),
        // Slot 'onClicked'
        QtMocHelpers::SlotData<void(QModelIndex const &)>(13, 2, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 14, 15 },
        }}),
        // Slot 'checkSelectedItems'
        QtMocHelpers::SlotData<void()>(16, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'uncheckSelectedItems'
        QtMocHelpers::SlotData<void()>(17, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'onlyCheckSelectedItems'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'setSelectedItemsPriority'
        QtMocHelpers::SlotData<void()>(19, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'openSelectedItem'
        QtMocHelpers::SlotData<bool()>(20, 2, QMC::AccessPrivate, QMetaType::Bool),
        // Slot 'renameSelectedItem'
        QtMocHelpers::SlotData<void()>(21, 2, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'refreshContextMenuActionsSensitivity'
        QtMocHelpers::SlotData<void()>(22, 2, QMC::AccessPrivate, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<FileTreeView, qt_meta_tag_ZN12FileTreeViewE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject FileTreeView::staticMetaObject = { {
    QMetaObject::SuperData::link<QTreeView::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12FileTreeViewE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12FileTreeViewE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12FileTreeViewE_t>.metaTypes,
    nullptr
} };

void FileTreeView::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<FileTreeView *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->priorityChanged((*reinterpret_cast<std::add_pointer_t<file_indices_t>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[2]))); break;
        case 1: _t->wantedChanged((*reinterpret_cast<std::add_pointer_t<file_indices_t>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 2: _t->pathEdited((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QString>>(_a[2]))); break;
        case 3: _t->openRequested((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 4: _t->onClicked((*reinterpret_cast<std::add_pointer_t<QModelIndex>>(_a[1]))); break;
        case 5: _t->checkSelectedItems(); break;
        case 6: _t->uncheckSelectedItems(); break;
        case 7: _t->onlyCheckSelectedItems(); break;
        case 8: _t->setSelectedItemsPriority(); break;
        case 9: { bool _r = _t->openSelectedItem();
            if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); }  break;
        case 10: _t->renameSelectedItem(); break;
        case 11: _t->refreshContextMenuActionsSensitivity(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (FileTreeView::*)(file_indices_t const & , int )>(_a, &FileTreeView::priorityChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (FileTreeView::*)(file_indices_t const & , bool )>(_a, &FileTreeView::wantedChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (FileTreeView::*)(QString const & , QString const & )>(_a, &FileTreeView::pathEdited, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (FileTreeView::*)(QString const & )>(_a, &FileTreeView::openRequested, 3))
            return;
    }
}

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

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

int FileTreeView::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 < 12)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 12;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 12)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 12;
    }
    return _id;
}

// SIGNAL 0
void FileTreeView::priorityChanged(file_indices_t const & _t1, int _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1, _t2);
}

// SIGNAL 1
void FileTreeView::wantedChanged(file_indices_t const & _t1, bool _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1, _t2);
}

// SIGNAL 2
void FileTreeView::pathEdited(QString const & _t1, QString const & _t2)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1, _t2);
}

// SIGNAL 3
void FileTreeView::openRequested(QString const & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
