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

template <> constexpr inline auto KSelectAction::qt_create_metaobjectdata<qt_meta_tag_ZN13KSelectActionE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KSelectAction",
        "actionTriggered",
        "",
        "QAction*",
        "action",
        "indexTriggered",
        "index",
        "textTriggered",
        "text",
        "slotActionTriggered",
        "slotToggled",
        "currentAction",
        "editable",
        "comboWidth",
        "currentText",
        "toolBarMode",
        "ToolBarMode",
        "toolButtonPopupMode",
        "QToolButton::ToolButtonPopupMode",
        "currentItem",
        "items",
        "MenuMode",
        "ComboBoxMode"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'actionTriggered'
        QtMocHelpers::SignalData<void(QAction *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'indexTriggered'
        QtMocHelpers::SignalData<void(int)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Int, 6 },
        }}),
        // Signal 'textTriggered'
        QtMocHelpers::SignalData<void(const QString &)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 8 },
        }}),
        // Slot 'slotActionTriggered'
        QtMocHelpers::SlotData<void(QAction *)>(9, 2, QMC::AccessProtected, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'slotToggled'
        QtMocHelpers::SlotData<void(bool)>(10, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::Bool, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'currentAction'
        QtMocHelpers::PropertyData<QAction*>(11, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'editable'
        QtMocHelpers::PropertyData<bool>(12, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'comboWidth'
        QtMocHelpers::PropertyData<int>(13, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'currentText'
        QtMocHelpers::PropertyData<QString>(14, QMetaType::QString, QMC::DefaultPropertyFlags),
        // property 'toolBarMode'
        QtMocHelpers::PropertyData<enum ToolBarMode>(15, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'toolButtonPopupMode'
        QtMocHelpers::PropertyData<QToolButton::ToolButtonPopupMode>(17, 0x80000000 | 18, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'currentItem'
        QtMocHelpers::PropertyData<int>(19, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'items'
        QtMocHelpers::PropertyData<QStringList>(20, QMetaType::QStringList, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'ToolBarMode'
        QtMocHelpers::EnumData<enum ToolBarMode>(16, 16, QMC::EnumFlags{}).add({
            {   21, ToolBarMode::MenuMode },
            {   22, ToolBarMode::ComboBoxMode },
        }),
    };
    return QtMocHelpers::metaObjectData<KSelectAction, qt_meta_tag_ZN13KSelectActionE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT static const QMetaObject::SuperData qt_meta_extradata_ZN13KSelectActionE[] = {
    QMetaObject::SuperData::link<QToolButton::staticMetaObject>(),
    nullptr
};

Q_CONSTINIT const QMetaObject KSelectAction::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidgetAction::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13KSelectActionE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN13KSelectActionE_t>.data,
    qt_static_metacall,
    qt_meta_extradata_ZN13KSelectActionE,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN13KSelectActionE_t>.metaTypes,
    nullptr
} };

void KSelectAction::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KSelectAction *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->actionTriggered((*reinterpret_cast<std::add_pointer_t<QAction*>>(_a[1]))); break;
        case 1: _t->indexTriggered((*reinterpret_cast<std::add_pointer_t<int>>(_a[1]))); break;
        case 2: _t->textTriggered((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->slotActionTriggered((*reinterpret_cast<std::add_pointer_t<QAction*>>(_a[1]))); break;
        case 4: _t->slotToggled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); 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< QAction* >(); break;
            }
            break;
        case 3:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QAction* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KSelectAction::*)(QAction * )>(_a, &KSelectAction::actionTriggered, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSelectAction::*)(int )>(_a, &KSelectAction::indexTriggered, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KSelectAction::*)(const QString & )>(_a, &KSelectAction::textTriggered, 2))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QAction* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QAction**>(_v) = _t->currentAction(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->isEditable(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->comboWidth(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->currentText(); break;
        case 4: *reinterpret_cast<enum ToolBarMode*>(_v) = _t->toolBarMode(); break;
        case 5: *reinterpret_cast<QToolButton::ToolButtonPopupMode*>(_v) = _t->toolButtonPopupMode(); break;
        case 6: *reinterpret_cast<int*>(_v) = _t->currentItem(); break;
        case 7: *reinterpret_cast<QStringList*>(_v) = _t->items(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setCurrentAction(*reinterpret_cast<QAction**>(_v)); break;
        case 1: _t->setEditable(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setComboWidth(*reinterpret_cast<int*>(_v)); break;
        case 4: _t->setToolBarMode(*reinterpret_cast<enum ToolBarMode*>(_v)); break;
        case 5: _t->setToolButtonPopupMode(*reinterpret_cast<QToolButton::ToolButtonPopupMode*>(_v)); break;
        case 6: _t->setCurrentItem(*reinterpret_cast<int*>(_v)); break;
        case 7: _t->setItems(*reinterpret_cast<QStringList*>(_v)); break;
        default: break;
        }
    }
}

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

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

int KSelectAction::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidgetAction::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 5)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 5;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    return _id;
}

// SIGNAL 0
void KSelectAction::actionTriggered(QAction * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void KSelectAction::indexTriggered(int _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void KSelectAction::textTriggered(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
