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

#include "../../../../kwidgetsaddons-6.26.0/src/kmultitabbar.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 'kmultitabbar.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.0. 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_ZN12KMultiTabBarE_t {};
} // unnamed namespace

template <> constexpr inline auto KMultiTabBar::qt_create_metaobjectdata<qt_meta_tag_ZN12KMultiTabBarE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KMultiTabBar",
        "position",
        "KMultiTabBarPosition",
        "tabStyle",
        "KMultiTabBarStyle",
        "Left",
        "Right",
        "Top",
        "Bottom",
        "VSNET",
        "KDEV3ICON",
        "STYLELAST"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'position'
        QtMocHelpers::PropertyData<enum KMultiTabBarPosition>(1, 0x80000000 | 2, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'tabStyle'
        QtMocHelpers::PropertyData<enum KMultiTabBarStyle>(3, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'KMultiTabBarPosition'
        QtMocHelpers::EnumData<enum KMultiTabBarPosition>(2, 2, QMC::EnumFlags{}).add({
            {    5, KMultiTabBarPosition::Left },
            {    6, KMultiTabBarPosition::Right },
            {    7, KMultiTabBarPosition::Top },
            {    8, KMultiTabBarPosition::Bottom },
        }),
        // enum 'KMultiTabBarStyle'
        QtMocHelpers::EnumData<enum KMultiTabBarStyle>(4, 4, QMC::EnumFlags{}).add({
            {    9, KMultiTabBarStyle::VSNET },
            {   10, KMultiTabBarStyle::KDEV3ICON },
            {   11, KMultiTabBarStyle::STYLELAST },
        }),
    };
    return QtMocHelpers::metaObjectData<KMultiTabBar, qt_meta_tag_ZN12KMultiTabBarE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KMultiTabBar::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12KMultiTabBarE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12KMultiTabBarE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12KMultiTabBarE_t>.metaTypes,
    nullptr
} };

void KMultiTabBar::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KMultiTabBar *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum KMultiTabBarPosition*>(_v) = _t->position(); break;
        case 1: *reinterpret_cast<enum KMultiTabBarStyle*>(_v) = _t->tabStyle(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setPosition(*reinterpret_cast<enum KMultiTabBarPosition*>(_v)); break;
        case 1: _t->setStyle(*reinterpret_cast<enum KMultiTabBarStyle*>(_v)); break;
        default: break;
        }
    }
}

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

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

int KMultiTabBar::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 2;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN18KMultiTabBarButtonE_t {};
} // unnamed namespace

template <> constexpr inline auto KMultiTabBarButton::qt_create_metaobjectdata<qt_meta_tag_ZN18KMultiTabBarButtonE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KMultiTabBarButton",
        "clicked",
        "",
        "id",
        "setText",
        "text",
        "slotClicked"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'clicked'
        QtMocHelpers::SignalData<void(int)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 3 },
        }}),
        // Slot 'setText'
        QtMocHelpers::SlotData<void(const QString &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 5 },
        }}),
        // Slot 'slotClicked'
        QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessProtected, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KMultiTabBarButton, qt_meta_tag_ZN18KMultiTabBarButtonE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KMultiTabBarButton::staticMetaObject = { {
    QMetaObject::SuperData::link<QPushButton::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18KMultiTabBarButtonE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN18KMultiTabBarButtonE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN18KMultiTabBarButtonE_t>.metaTypes,
    nullptr
} };

void KMultiTabBarButton::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KMultiTabBarButton *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->clicked((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 1: _t->setText((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->slotClicked(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KMultiTabBarButton::*)(int )>(_a, &KMultiTabBarButton::clicked, 0))
            return;
    }
}

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

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

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

// SIGNAL 0
void KMultiTabBarButton::clicked(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}
namespace {
struct qt_meta_tag_ZN15KMultiTabBarTabE_t {};
} // unnamed namespace

template <> constexpr inline auto KMultiTabBarTab::qt_create_metaobjectdata<qt_meta_tag_ZN15KMultiTabBarTabE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KMultiTabBarTab",
        "setPosition",
        "",
        "KMultiTabBar::KMultiTabBarPosition",
        "setStyle",
        "KMultiTabBar::KMultiTabBarStyle",
        "setState",
        "state"
    };

    QtMocHelpers::UintData qt_methods {
        // Slot 'setPosition'
        QtMocHelpers::SlotData<void(KMultiTabBar::KMultiTabBarPosition)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 2 },
        }}),
        // Slot 'setStyle'
        QtMocHelpers::SlotData<void(KMultiTabBar::KMultiTabBarStyle)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 2 },
        }}),
        // Slot 'setState'
        QtMocHelpers::SlotData<void(bool)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 7 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KMultiTabBarTab, qt_meta_tag_ZN15KMultiTabBarTabE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KMultiTabBarTab::staticMetaObject = { {
    QMetaObject::SuperData::link<KMultiTabBarButton::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15KMultiTabBarTabE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15KMultiTabBarTabE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15KMultiTabBarTabE_t>.metaTypes,
    nullptr
} };

void KMultiTabBarTab::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KMultiTabBarTab *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->setPosition((*reinterpret_cast<std::add_pointer_t<KMultiTabBar::KMultiTabBarPosition>>(_a[1]))); break;
        case 1: _t->setStyle((*reinterpret_cast<std::add_pointer_t<KMultiTabBar::KMultiTabBarStyle>>(_a[1]))); break;
        case 2: _t->setState((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        default: ;
        }
    }
}

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

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

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