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

template <> constexpr inline auto KActionSelector::qt_create_metaobjectdata<qt_meta_tag_ZN15KActionSelectorE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KActionSelector",
        "added",
        "",
        "QListWidgetItem*",
        "item",
        "removed",
        "movedUp",
        "movedDown",
        "setButtonsEnabled",
        "moveOnDoubleClick",
        "keyboardEnabled",
        "availableLabel",
        "selectedLabel",
        "availableInsertionPolicy",
        "InsertionPolicy",
        "selectedInsertionPolicy",
        "showUpDownButtons",
        "MoveButton",
        "ButtonAdd",
        "ButtonRemove",
        "ButtonUp",
        "ButtonDown",
        "BelowCurrent",
        "Sorted",
        "AtTop",
        "AtBottom"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'added'
        QtMocHelpers::SignalData<void(QListWidgetItem *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'removed'
        QtMocHelpers::SignalData<void(QListWidgetItem *)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'movedUp'
        QtMocHelpers::SignalData<void(QListWidgetItem *)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'movedDown'
        QtMocHelpers::SignalData<void(QListWidgetItem *)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'setButtonsEnabled'
        QtMocHelpers::SlotData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'moveOnDoubleClick'
        QtMocHelpers::PropertyData<bool>(9, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'keyboardEnabled'
        QtMocHelpers::PropertyData<bool>(10, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'availableLabel'
        QtMocHelpers::PropertyData<QString>(11, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'selectedLabel'
        QtMocHelpers::PropertyData<QString>(12, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'availableInsertionPolicy'
        QtMocHelpers::PropertyData<enum InsertionPolicy>(13, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'selectedInsertionPolicy'
        QtMocHelpers::PropertyData<enum InsertionPolicy>(15, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet),
        // property 'showUpDownButtons'
        QtMocHelpers::PropertyData<bool>(16, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'MoveButton'
        QtMocHelpers::EnumData<enum MoveButton>(17, 17, QMC::EnumFlags{}).add({
            {   18, MoveButton::ButtonAdd },
            {   19, MoveButton::ButtonRemove },
            {   20, MoveButton::ButtonUp },
            {   21, MoveButton::ButtonDown },
        }),
        // enum 'InsertionPolicy'
        QtMocHelpers::EnumData<enum InsertionPolicy>(14, 14, QMC::EnumFlags{}).add({
            {   22, InsertionPolicy::BelowCurrent },
            {   23, InsertionPolicy::Sorted },
            {   24, InsertionPolicy::AtTop },
            {   25, InsertionPolicy::AtBottom },
        }),
    };
    return QtMocHelpers::metaObjectData<KActionSelector, qt_meta_tag_ZN15KActionSelectorE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KActionSelector::staticMetaObject = { {
    QMetaObject::SuperData::link<QWidget::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15KActionSelectorE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN15KActionSelectorE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN15KActionSelectorE_t>.metaTypes,
    nullptr
} };

void KActionSelector::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KActionSelector *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->added((*reinterpret_cast<std::add_pointer_t<QListWidgetItem*>>(_a[1]))); break;
        case 1: _t->removed((*reinterpret_cast<std::add_pointer_t<QListWidgetItem*>>(_a[1]))); break;
        case 2: _t->movedUp((*reinterpret_cast<std::add_pointer_t<QListWidgetItem*>>(_a[1]))); break;
        case 3: _t->movedDown((*reinterpret_cast<std::add_pointer_t<QListWidgetItem*>>(_a[1]))); break;
        case 4: _t->setButtonsEnabled(); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KActionSelector::*)(QListWidgetItem * )>(_a, &KActionSelector::added, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KActionSelector::*)(QListWidgetItem * )>(_a, &KActionSelector::removed, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KActionSelector::*)(QListWidgetItem * )>(_a, &KActionSelector::movedUp, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KActionSelector::*)(QListWidgetItem * )>(_a, &KActionSelector::movedDown, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->moveOnDoubleClick(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->keyboardEnabled(); break;
        case 2: *reinterpret_cast<QString*>(_v) = _t->availableLabel(); break;
        case 3: *reinterpret_cast<QString*>(_v) = _t->selectedLabel(); break;
        case 4: *reinterpret_cast<enum InsertionPolicy*>(_v) = _t->availableInsertionPolicy(); break;
        case 5: *reinterpret_cast<enum InsertionPolicy*>(_v) = _t->selectedInsertionPolicy(); break;
        case 6: *reinterpret_cast<bool*>(_v) = _t->showUpDownButtons(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setMoveOnDoubleClick(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->setKeyboardEnabled(*reinterpret_cast<bool*>(_v)); break;
        case 2: _t->setAvailableLabel(*reinterpret_cast<QString*>(_v)); break;
        case 3: _t->setSelectedLabel(*reinterpret_cast<QString*>(_v)); break;
        case 4: _t->setAvailableInsertionPolicy(*reinterpret_cast<enum InsertionPolicy*>(_v)); break;
        case 5: _t->setSelectedInsertionPolicy(*reinterpret_cast<enum InsertionPolicy*>(_v)); break;
        case 6: _t->setShowUpDownButtons(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

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

int KActionSelector::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::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)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _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 -= 7;
    }
    return _id;
}

// SIGNAL 0
void KActionSelector::added(QListWidgetItem * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void KActionSelector::removed(QListWidgetItem * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void KActionSelector::movedUp(QListWidgetItem * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void KActionSelector::movedDown(QListWidgetItem * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
