/****************************************************************************
** Meta object code from reading C++ file 'kcombobox.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 "../../../../kcompletion-6.29.0/src/kcombobox.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 'kcombobox.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_ZN9KComboBoxE_t {};
} // unnamed namespace

template <> constexpr inline auto KComboBox::qt_create_metaobjectdata<qt_meta_tag_ZN9KComboBoxE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "KComboBox",
        "returnPressed",
        "",
        "text",
        "completion",
        "substringCompletion",
        "textRotation",
        "KCompletionBase::KeyBindingType",
        "completionModeChanged",
        "KCompletion::CompletionMode",
        "aboutToShowContextMenu",
        "QMenu*",
        "contextMenu",
        "rotateText",
        "type",
        "setCompletedText",
        "setCompletedItems",
        "items",
        "autoSuggest",
        "setCurrentItem",
        "item",
        "insert",
        "index",
        "makeCompletion",
        "autoCompletion",
        "trapReturnKey"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'returnPressed'
        QtMocHelpers::SignalData<void(const QString &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 3 },
        }}),
        // Signal 'completion'
        QtMocHelpers::SignalData<void(const QString &)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Signal 'substringCompletion'
        QtMocHelpers::SignalData<void(const QString &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Signal 'textRotation'
        QtMocHelpers::SignalData<void(KCompletionBase::KeyBindingType)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 2 },
        }}),
        // Signal 'completionModeChanged'
        QtMocHelpers::SignalData<void(KCompletion::CompletionMode)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 2 },
        }}),
        // Signal 'aboutToShowContextMenu'
        QtMocHelpers::SignalData<void(QMenu *)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 11, 12 },
        }}),
        // Slot 'rotateText'
        QtMocHelpers::SlotData<void(KCompletionBase::KeyBindingType)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 14 },
        }}),
        // Slot 'setCompletedText'
        QtMocHelpers::SlotData<void(const QString &)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
        // Slot 'setCompletedItems'
        QtMocHelpers::SlotData<void(const QStringList &, bool)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 17 }, { QMetaType::Bool, 18 },
        }}),
        // Slot 'setCompletedItems'
        QtMocHelpers::SlotData<void(const QStringList &)>(16, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::QStringList, 17 },
        }}),
        // Slot 'setCurrentItem'
        QtMocHelpers::SlotData<void(const QString &, bool, int)>(19, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QString, 20 }, { QMetaType::Bool, 21 }, { QMetaType::Int, 22 },
        }}),
        // Slot 'setCurrentItem'
        QtMocHelpers::SlotData<void(const QString &, bool)>(19, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::QString, 20 }, { QMetaType::Bool, 21 },
        }}),
        // Slot 'setCurrentItem'
        QtMocHelpers::SlotData<void(const QString &)>(19, 2, QMC::AccessPublic | QMC::MethodCloned, QMetaType::Void, {{
            { QMetaType::QString, 20 },
        }}),
        // Slot 'makeCompletion'
        QtMocHelpers::SlotData<void(const QString &)>(23, 2, QMC::AccessProtected, QMetaType::Void, {{
            { QMetaType::QString, 2 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'autoCompletion'
        QtMocHelpers::PropertyData<bool>(24, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
        // property 'trapReturnKey'
        QtMocHelpers::PropertyData<bool>(25, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<KComboBox, qt_meta_tag_ZN9KComboBoxE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject KComboBox::staticMetaObject = { {
    QMetaObject::SuperData::link<QComboBox::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9KComboBoxE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9KComboBoxE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN9KComboBoxE_t>.metaTypes,
    nullptr
} };

void KComboBox::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<KComboBox *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->returnPressed((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 1: _t->completion((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 2: _t->substringCompletion((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 3: _t->textRotation((*reinterpret_cast<std::add_pointer_t<KCompletionBase::KeyBindingType>>(_a[1]))); break;
        case 4: _t->completionModeChanged((*reinterpret_cast<std::add_pointer_t<KCompletion::CompletionMode>>(_a[1]))); break;
        case 5: _t->aboutToShowContextMenu((*reinterpret_cast<std::add_pointer_t<QMenu*>>(_a[1]))); break;
        case 6: _t->rotateText((*reinterpret_cast<std::add_pointer_t<KCompletionBase::KeyBindingType>>(_a[1]))); break;
        case 7: _t->setCompletedText((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 8: _t->setCompletedItems((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 9: _t->setCompletedItems((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 10: _t->setCurrentItem((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<int>>(_a[3]))); break;
        case 11: _t->setCurrentItem((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<bool>>(_a[2]))); break;
        case 12: _t->setCurrentItem((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        case 13: _t->makeCompletion((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (KComboBox::*)(const QString & )>(_a, &KComboBox::returnPressed, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (KComboBox::*)(const QString & )>(_a, &KComboBox::completion, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (KComboBox::*)(const QString & )>(_a, &KComboBox::substringCompletion, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (KComboBox::*)(KCompletionBase::KeyBindingType )>(_a, &KComboBox::textRotation, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (KComboBox::*)(KCompletion::CompletionMode )>(_a, &KComboBox::completionModeChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (KComboBox::*)(QMenu * )>(_a, &KComboBox::aboutToShowContextMenu, 5))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->autoCompletion(); break;
        case 1: *reinterpret_cast<bool*>(_v) = _t->trapReturnKey(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setAutoCompletion(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->setTrapReturnKey(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

void *KComboBox::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN9KComboBoxE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "KCompletionBase"))
        return static_cast< KCompletionBase*>(this);
    return QComboBox::qt_metacast(_clname);
}

int KComboBox::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QComboBox::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 14)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 14;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 14)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 14;
    }
    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;
}

// SIGNAL 0
void KComboBox::returnPressed(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void KComboBox::completion(const QString & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

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

// SIGNAL 3
void KComboBox::textRotation(KCompletionBase::KeyBindingType _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void KComboBox::completionModeChanged(KCompletion::CompletionMode _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void KComboBox::aboutToShowContextMenu(QMenu * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
