/****************************************************************************
** Meta object code from reading C++ file 'paneltabbar.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 "../../../../krusader-2.9.0/app/paneltabbar.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 'paneltabbar.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_ZN11PanelTabBarE_t {};
} // unnamed namespace

template <> constexpr inline auto PanelTabBar::qt_create_metaobjectdata<qt_meta_tag_ZN11PanelTabBarE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "PanelTabBar",
        "closeCurrentTab",
        "",
        "duplicateCurrentTab",
        "newTab",
        "QUrl",
        "path",
        "draggingTab",
        "QMouseEvent*",
        "draggingTabFinished",
        "addPanel",
        "ListPanel*",
        "panel",
        "setCurrent",
        "insertIndex",
        "getPanel",
        "tabIdx",
        "changePanel",
        "layoutTabs",
        "updateTab",
        "removeCurrentPanel",
        "ListPanel*&",
        "panelToDelete",
        "removePanel",
        "index",
        "duplicateTab"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'closeCurrentTab'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'duplicateCurrentTab'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'newTab'
        QtMocHelpers::SignalData<void(const QUrl &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 6 },
        }}),
        // Signal 'draggingTab'
        QtMocHelpers::SignalData<void(QMouseEvent *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 2 },
        }}),
        // Signal 'draggingTabFinished'
        QtMocHelpers::SignalData<void(QMouseEvent *)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 8, 2 },
        }}),
        // Slot 'addPanel'
        QtMocHelpers::SlotData<int(ListPanel *, bool, int)>(10, 2, QMC::AccessPublic, QMetaType::Int, {{
            { 0x80000000 | 11, 12 }, { QMetaType::Bool, 13 }, { QMetaType::Int, 14 },
        }}),
        // Slot 'addPanel'
        QtMocHelpers::SlotData<int(ListPanel *, bool)>(10, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Int, {{
            { 0x80000000 | 11, 12 }, { QMetaType::Bool, 13 },
        }}),
        // Slot 'addPanel'
        QtMocHelpers::SlotData<int(ListPanel *)>(10, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Int, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'getPanel'
        QtMocHelpers::SlotData<ListPanel *(int)>(15, 2, QMC::AccessPublic, 0x80000000 | 11, {{
            { QMetaType::Int, 16 },
        }}),
        // Slot 'changePanel'
        QtMocHelpers::SlotData<void(int, ListPanel *)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 16 }, { 0x80000000 | 11, 12 },
        }}),
        // Slot 'layoutTabs'
        QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'updateTab'
        QtMocHelpers::SlotData<void(ListPanel *)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'removeCurrentPanel'
        QtMocHelpers::SlotData<ListPanel *(ListPanel * &)>(20, 2, QMC::AccessPublic, 0x80000000 | 11, {{
            { 0x80000000 | 21, 22 },
        }}),
        // Slot 'removePanel'
        QtMocHelpers::SlotData<ListPanel *(int, ListPanel * &)>(23, 2, QMC::AccessPublic, 0x80000000 | 11, {{
            { QMetaType::Int, 24 }, { 0x80000000 | 21, 22 },
        }}),
        // Slot 'duplicateTab'
        QtMocHelpers::SlotData<void()>(25, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<PanelTabBar, qt_meta_tag_ZN11PanelTabBarE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject PanelTabBar::staticMetaObject = { {
    QMetaObject::SuperData::link<QTabBar::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11PanelTabBarE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN11PanelTabBarE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN11PanelTabBarE_t>.metaTypes,
    nullptr
} };

void PanelTabBar::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<PanelTabBar *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->closeCurrentTab(); break;
        case 1: _t->duplicateCurrentTab(); break;
        case 2: _t->newTab((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
        case 3: _t->draggingTab((*reinterpret_cast<std::add_pointer_t<QMouseEvent*>>(_a[1]))); break;
        case 4: _t->draggingTabFinished((*reinterpret_cast<std::add_pointer_t<QMouseEvent*>>(_a[1]))); break;
        case 5: { int _r = _t->addPanel((*reinterpret_cast<std::add_pointer_t<ListPanel*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 6: { int _r = _t->addPanel((*reinterpret_cast<std::add_pointer_t<ListPanel*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 7: { int _r = _t->addPanel((*reinterpret_cast<std::add_pointer_t<ListPanel*>>(_a[1])));
            if (_a[0]) *reinterpret_cast<int*>(_a[0]) = std::move(_r); }  break;
        case 8: { ListPanel* _r = _t->getPanel((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])));
            if (_a[0]) *reinterpret_cast<ListPanel**>(_a[0]) = std::move(_r); }  break;
        case 9: _t->changePanel((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<ListPanel*>>(_a[2]))); break;
        case 10: _t->layoutTabs(); break;
        case 11: _t->updateTab((*reinterpret_cast<std::add_pointer_t<ListPanel*>>(_a[1]))); break;
        case 12: { ListPanel* _r = _t->removeCurrentPanel((*reinterpret_cast<std::add_pointer_t<ListPanel*&>>(_a[1])));
            if (_a[0]) *reinterpret_cast<ListPanel**>(_a[0]) = std::move(_r); }  break;
        case 13: { ListPanel* _r = _t->removePanel((*reinterpret_cast<std::add_pointer_t<int>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<ListPanel*&>>(_a[2])));
            if (_a[0]) *reinterpret_cast<ListPanel**>(_a[0]) = std::move(_r); }  break;
        case 14: _t->duplicateTab(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (PanelTabBar::*)()>(_a, &PanelTabBar::closeCurrentTab, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (PanelTabBar::*)()>(_a, &PanelTabBar::duplicateCurrentTab, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (PanelTabBar::*)(const QUrl & )>(_a, &PanelTabBar::newTab, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (PanelTabBar::*)(QMouseEvent * )>(_a, &PanelTabBar::draggingTab, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (PanelTabBar::*)(QMouseEvent * )>(_a, &PanelTabBar::draggingTabFinished, 4))
            return;
    }
}

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

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

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

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

// SIGNAL 1
void PanelTabBar::duplicateCurrentTab()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void PanelTabBar::newTab(const QUrl & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void PanelTabBar::draggingTab(QMouseEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void PanelTabBar::draggingTabFinished(QMouseEvent * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}
QT_WARNING_POP
