/*
 * Interface wrapper code.
 *
 * Generated by SIP 4.19.6
 */

#include "sipAPIKWidgetsAddons.h"

#include <kselectaction.h>

#include <qobject.h>
#include <qstring.h>
#include <qicon.h>
#include <qcoreevent.h>
#include <qwidget.h>
#include <qaction.h>
#include <qstringlist.h>
#include <qnamespace.h>
#include <qlist.h>
#include <qactiongroup.h>
#include <qtoolbutton.h>
#include <qlist.h>
#include <qlist.h>
#include <qgraphicswidget.h>
#include <qlist.h>
#include <qkeysequence.h>
#include <qvariant.h>
#include <qfont.h>
#include <qmenu.h>
#include <qmetaobject.h>
#include <qcoreevent.h>
#include <qcoreevent.h>
#include <qlist.h>
#include <qbytearray.h>
#include <qlist.h>
#include <qthread.h>
#include <qnamespace.h>
#include <qregexp.h>
#include <qregularexpression.h>
#include <qobjectdefs.h>


class sipKSelectAction : public  ::KSelectAction
{
public:
    sipKSelectAction( ::QObject*);
    sipKSelectAction(const  ::QString&, ::QObject*);
    sipKSelectAction(const  ::QIcon&,const  ::QString&, ::QObject*);
    virtual ~sipKSelectAction();

    int qt_metacall(QMetaObject::Call,int,void **);
    void *qt_metacast(const char *);
    const QMetaObject *metaObject() const;

    /*
     * There is a public method for every protected method visible from
     * this class.
     */
     ::QObject* sipProtect_sender() const;
    int sipProtect_receivers(const char*) const;
    void sipProtectVirt_timerEvent(bool, ::QTimerEvent*);
    void sipProtectVirt_childEvent(bool, ::QChildEvent*);
    void sipProtectVirt_customEvent(bool, ::QEvent*);
    void sipProtectVirt_connectNotify(bool,const  ::QMetaMethod&);
    void sipProtectVirt_disconnectNotify(bool,const  ::QMetaMethod&);
    int sipProtect_senderSignalIndex() const;
    bool sipProtect_isSignalConnected(const  ::QMetaMethod&) const;
    QList< ::QWidget*> sipProtect_createdWidgets() const;
    void sipProtectVirt_actionTriggered(bool, ::QAction*);
    void sipProtect_slotToggled(bool);
     ::QWidget* sipProtectVirt_createWidget(bool, ::QWidget*);
    void sipProtectVirt_deleteWidget(bool, ::QWidget*);
    bool sipProtectVirt_event(bool, ::QEvent*);
    bool sipProtectVirt_eventFilter(bool, ::QObject*, ::QEvent*);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void actionTriggered( ::QAction*);
    void insertAction( ::QAction*, ::QAction*);
     ::QAction* removeAction( ::QAction*);
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);
     ::QWidget* createWidget( ::QWidget*);
    void deleteWidget( ::QWidget*);

public:
    sipSimpleWrapper *sipPySelf;

private:
    sipKSelectAction(const sipKSelectAction &);
    sipKSelectAction &operator = (const sipKSelectAction &);

    char sipPyMethods[12];
};

sipKSelectAction::sipKSelectAction( ::QObject*a0):  ::KSelectAction(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKSelectAction::sipKSelectAction(const  ::QString& a0, ::QObject*a1):  ::KSelectAction(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKSelectAction::sipKSelectAction(const  ::QIcon& a0,const  ::QString& a1, ::QObject*a2):  ::KSelectAction(a0,a1,a2), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipKSelectAction::~sipKSelectAction()
{
    sipInstanceDestroyed(sipPySelf);
}

const QMetaObject *sipKSelectAction::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_KWidgetsAddons_qt_metaobject(sipPySelf,sipType_KSelectAction);

    return  ::KSelectAction::metaObject();
}

int sipKSelectAction::qt_metacall(QMetaObject::Call _c,int _id,void **_a)
{
    _id =  ::KSelectAction::qt_metacall(_c,_id,_a);

    if (_id >= 0)
        _id = sip_KWidgetsAddons_qt_metacall(sipPySelf,sipType_KSelectAction,_c,_id,_a);

    return _id;
}

void *sipKSelectAction::qt_metacast(const char *_clname)
{
    void *sipCpp;

    return (sip_KWidgetsAddons_qt_metacast(sipPySelf, sipType_KSelectAction, _clname, &sipCpp) ? sipCpp :  ::KSelectAction::qt_metacast(_clname));
}

void sipKSelectAction::actionTriggered( ::QAction*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipName_actionTriggered);

    if (!sipMeth)
    {
         ::KSelectAction::actionTriggered(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_46(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QAction*);

    sipVH_KWidgetsAddons_46(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKSelectAction::insertAction( ::QAction*a0, ::QAction*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[1],sipPySelf,NULL,sipName_insertAction);

    if (!sipMeth)
    {
         ::KSelectAction::insertAction(a0,a1);
        return;
    }

    extern void sipVH_KWidgetsAddons_45(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QAction*, ::QAction*);

    sipVH_KWidgetsAddons_45(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

 ::QAction* sipKSelectAction::removeAction( ::QAction*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[2],sipPySelf,NULL,sipName_removeAction);

    if (!sipMeth)
        return  ::KSelectAction::removeAction(a0);

    extern  ::QAction* sipVH_KWidgetsAddons_44(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QAction*);

    return sipVH_KWidgetsAddons_44(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipKSelectAction::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[3],sipPySelf,NULL,sipName_event);

    if (!sipMeth)
        return  ::KSelectAction::event(a0);

    extern bool sipVH_KWidgetsAddons_31(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    return sipVH_KWidgetsAddons_31(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

bool sipKSelectAction::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[4],sipPySelf,NULL,sipName_eventFilter);

    if (!sipMeth)
        return  ::KSelectAction::eventFilter(a0,a1);

    extern bool sipVH_KWidgetsAddons_32(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QObject*, ::QEvent*);

    return sipVH_KWidgetsAddons_32(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

void sipKSelectAction::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[5],sipPySelf,NULL,sipName_timerEvent);

    if (!sipMeth)
    {
         ::KSelectAction::timerEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_33(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QTimerEvent*);

    sipVH_KWidgetsAddons_33(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKSelectAction::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[6],sipPySelf,NULL,sipName_childEvent);

    if (!sipMeth)
    {
         ::KSelectAction::childEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_34(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QChildEvent*);

    sipVH_KWidgetsAddons_34(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKSelectAction::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[7],sipPySelf,NULL,sipName_customEvent);

    if (!sipMeth)
    {
         ::KSelectAction::customEvent(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_7(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*);

    sipVH_KWidgetsAddons_7(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKSelectAction::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[8],sipPySelf,NULL,sipName_connectNotify);

    if (!sipMeth)
    {
         ::KSelectAction::connectNotify(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_KWidgetsAddons_35(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKSelectAction::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[9],sipPySelf,NULL,sipName_disconnectNotify);

    if (!sipMeth)
    {
         ::KSelectAction::disconnectNotify(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_35(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QMetaMethod&);

    sipVH_KWidgetsAddons_35(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QWidget* sipKSelectAction::createWidget( ::QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[10],sipPySelf,NULL,sipName_createWidget);

    if (!sipMeth)
        return  ::KSelectAction::createWidget(a0);

    extern  ::QWidget* sipVH_KWidgetsAddons_43(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*);

    return sipVH_KWidgetsAddons_43(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKSelectAction::deleteWidget( ::QWidget*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[11],sipPySelf,NULL,sipName_deleteWidget);

    if (!sipMeth)
    {
         ::KSelectAction::deleteWidget(a0);
        return;
    }

    extern void sipVH_KWidgetsAddons_42(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*);

    sipVH_KWidgetsAddons_42(sipGILState, sipImportedVirtErrorHandlers_KWidgetsAddons_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

 ::QObject* sipKSelectAction::sipProtect_sender() const
{
    return  ::QObject::sender();
}

int sipKSelectAction::sipProtect_receivers(const char*a0) const
{
    return  ::QObject::receivers(a0);
}

void sipKSelectAction::sipProtectVirt_timerEvent(bool sipSelfWasArg, ::QTimerEvent*a0)
{
    (sipSelfWasArg ?  ::QObject::timerEvent(a0) : timerEvent(a0));
}

void sipKSelectAction::sipProtectVirt_childEvent(bool sipSelfWasArg, ::QChildEvent*a0)
{
    (sipSelfWasArg ?  ::QObject::childEvent(a0) : childEvent(a0));
}

void sipKSelectAction::sipProtectVirt_customEvent(bool sipSelfWasArg, ::QEvent*a0)
{
    (sipSelfWasArg ?  ::QObject::customEvent(a0) : customEvent(a0));
}

void sipKSelectAction::sipProtectVirt_connectNotify(bool sipSelfWasArg,const  ::QMetaMethod& a0)
{
    (sipSelfWasArg ?  ::QObject::connectNotify(a0) : connectNotify(a0));
}

void sipKSelectAction::sipProtectVirt_disconnectNotify(bool sipSelfWasArg,const  ::QMetaMethod& a0)
{
    (sipSelfWasArg ?  ::QObject::disconnectNotify(a0) : disconnectNotify(a0));
}

int sipKSelectAction::sipProtect_senderSignalIndex() const
{
    return  ::QObject::senderSignalIndex();
}

bool sipKSelectAction::sipProtect_isSignalConnected(const  ::QMetaMethod& a0) const
{
    return  ::QObject::isSignalConnected(a0);
}

QList< ::QWidget*> sipKSelectAction::sipProtect_createdWidgets() const
{
    return  ::QWidgetAction::createdWidgets();
}

void sipKSelectAction::sipProtectVirt_actionTriggered(bool sipSelfWasArg, ::QAction*a0)
{
    (sipSelfWasArg ?  ::KSelectAction::actionTriggered(a0) : actionTriggered(a0));
}

void sipKSelectAction::sipProtect_slotToggled(bool a0)
{
     ::KSelectAction::slotToggled(a0);
}

 ::QWidget* sipKSelectAction::sipProtectVirt_createWidget(bool sipSelfWasArg, ::QWidget*a0)
{
    return (sipSelfWasArg ?  ::KSelectAction::createWidget(a0) : createWidget(a0));
}

void sipKSelectAction::sipProtectVirt_deleteWidget(bool sipSelfWasArg, ::QWidget*a0)
{
    (sipSelfWasArg ?  ::KSelectAction::deleteWidget(a0) : deleteWidget(a0));
}

bool sipKSelectAction::sipProtectVirt_event(bool sipSelfWasArg, ::QEvent*a0)
{
    return (sipSelfWasArg ?  ::KSelectAction::event(a0) : event(a0));
}

bool sipKSelectAction::sipProtectVirt_eventFilter(bool sipSelfWasArg, ::QObject*a0, ::QEvent*a1)
{
    return (sipSelfWasArg ?  ::KSelectAction::eventFilter(a0,a1) : eventFilter(a0,a1));
}


extern "C" {static PyObject *meth_KSelectAction_sender(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_sender(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
             ::QObject*sipRes = 0;

        // sender() must be called without the GIL to avoid possible deadlocks between
        // the GIL and Qt's internal thread data mutex.
        
        Py_BEGIN_ALLOW_THREADS
        
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        sipRes = sipCpp->sender();
        #else
        sipRes = sipCpp->sipProtect_sender();
        #endif
        
        Py_END_ALLOW_THREADS
        
        if (!sipRes)
        {
            typedef QObject *(*qtcore_qobject_sender_t)();
        
            static qtcore_qobject_sender_t qtcore_qobject_sender = 0;
        
            if (!qtcore_qobject_sender)
            {
                qtcore_qobject_sender = (qtcore_qobject_sender_t)sipImportSymbol("qtcore_qobject_sender");
                Q_ASSERT(qtcore_qobject_sender);
            }
        
            sipRes = qtcore_qobject_sender();
        }

            return sipConvertFromType(sipRes,sipType_QObject,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_sender, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_receivers(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_receivers(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        PyObject * a0;
        const sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_KSelectAction, &sipCpp, &a0))
        {
            int sipRes = 0;
            sipErrorState sipError = sipErrorNone;

        // We need to handle the signal object.  Import the helper if it hasn't already
        // been done.
        typedef sipErrorState (*pyqt5_get_signal_signature_t)(PyObject *, const QObject *, const QByteArray &);
        
        static pyqt5_get_signal_signature_t pyqt5_get_signal_signature = 0;
        
        if (!pyqt5_get_signal_signature)
        {
            pyqt5_get_signal_signature = (pyqt5_get_signal_signature_t)sipImportSymbol("pyqt5_get_signal_signature");
            Q_ASSERT(pyqt5_get_signal_signature);
        }
        
        QByteArray signal_signature;
            
        #if defined(SIP_PROTECTED_IS_PUBLIC)
        if ((sipError = pyqt5_get_signal_signature(a0, sipCpp, signal_signature)) == sipErrorNone)
        {
            sipRes = sipCpp->receivers(signal_signature.constData());
        }
        #else
        if ((sipError = pyqt5_get_signal_signature(a0, static_cast<const QObject *>(sipCpp), signal_signature)) == sipErrorNone)
        {
            sipRes = sipCpp->sipProtect_receivers(signal_signature.constData());
        }
        #endif
        else if (sipError == sipErrorContinue)
        {
            sipError = sipBadCallableArg(0, a0);
        }

            if (sipError == sipErrorFail)
                return 0;

            if (sipError == sipErrorNone)
            {
            return SIPLong_FromLong(sipRes);
            }

            sipAddException(sipError, &sipParseErr);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_receivers, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_timerEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_timerEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QTimerEvent* a0;
        sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QTimerEvent, &a0))
        {
            sipCpp->sipProtectVirt_timerEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_timerEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_childEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_childEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QChildEvent* a0;
        sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QChildEvent, &a0))
        {
            sipCpp->sipProtectVirt_childEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_childEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_customEvent(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_customEvent(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QEvent* a0;
        sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QEvent, &a0))
        {
            sipCpp->sipProtectVirt_customEvent(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_customEvent, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_connectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_connectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QMetaMethod* a0;
        sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_connectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_connectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_disconnectNotify(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_disconnectNotify(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
        const  ::QMetaMethod* a0;
        sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QMetaMethod, &a0))
        {
            sipCpp->sipProtectVirt_disconnectNotify(sipSelfWasArg,*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_disconnectNotify, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_senderSignalIndex(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_senderSignalIndex(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_senderSignalIndex, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_isSignalConnected(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_isSignalConnected(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QMetaMethod* a0;
        const sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QMetaMethod, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtect_isSignalConnected(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_isSignalConnected, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_createdWidgets(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_createdWidgets(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        const sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
            QList< ::QWidget*>*sipRes;

            sipRes = new QList< ::QWidget*>(sipCpp->sipProtect_createdWidgets());

            return sipConvertFromNewType(sipRes,sipType_QList_0101QWidget,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_createdWidgets, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_toolBarMode(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_toolBarMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
             ::KSelectAction::ToolBarMode sipRes;

            sipRes = sipCpp->toolBarMode();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_KSelectAction_ToolBarMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_toolBarMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_setToolBarMode(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_setToolBarMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KSelectAction::ToolBarMode a0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_KSelectAction_ToolBarMode, &a0))
        {
            sipCpp->setToolBarMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_setToolBarMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_toolButtonPopupMode(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_toolButtonPopupMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
             ::QToolButton::ToolButtonPopupMode sipRes;

            sipRes = sipCpp->toolButtonPopupMode();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_QToolButton_ToolButtonPopupMode);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_toolButtonPopupMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_setToolButtonPopupMode(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_setToolButtonPopupMode(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::QToolButton::ToolButtonPopupMode a0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QToolButton_ToolButtonPopupMode, &a0))
        {
            sipCpp->setToolButtonPopupMode(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_setToolButtonPopupMode, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_selectableActionGroup(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_selectableActionGroup(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
             ::QActionGroup*sipRes;

            sipRes = sipCpp->selectableActionGroup();

            return sipConvertFromType(sipRes,sipType_QActionGroup,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_selectableActionGroup, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_currentAction(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_currentAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
             ::QAction*sipRes;

            sipRes = sipCpp->currentAction();

            return sipConvertFromType(sipRes,sipType_QAction,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_currentAction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_currentItem(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_currentItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->currentItem();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_currentItem, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_currentText(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_currentText(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
             ::QString*sipRes;

            sipRes = new  ::QString(sipCpp->currentText());

            return sipConvertFromNewType(sipRes,sipType_QString,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_currentText, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_actions(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_actions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
            QList< ::QAction*>*sipRes;

            sipRes = new QList< ::QAction*>(sipCpp->actions());

            return sipConvertFromNewType(sipRes,sipType_QList_0101QAction,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_actions, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_action(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_action(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KSelectAction, &sipCpp, &a0))
        {
             ::QAction*sipRes;

            sipRes = sipCpp->action(a0);

            return sipConvertFromType(sipRes,sipType_QAction,NULL);
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
         ::Qt::CaseSensitivity a1 = Qt::CaseSensitive;
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QString,&a0, &a0State, sipType_Qt_CaseSensitivity, &a1))
        {
             ::QAction*sipRes;

            sipRes = sipCpp->action(*a0,a1);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_QAction,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_action, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_setCurrentAction(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_setCurrentAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::QAction* a0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QAction, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setCurrentAction(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
         ::Qt::CaseSensitivity a1 = Qt::CaseSensitive;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1|E", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QString,&a0, &a0State, sipType_Qt_CaseSensitivity, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->setCurrentAction(*a0,a1);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_setCurrentAction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_setCurrentItem(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_setCurrentItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KSelectAction, &sipCpp, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->setCurrentItem(a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_setCurrentItem, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_addAction(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_addAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::QAction* a0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QAction, &a0))
        {
            sipCpp->addAction(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QString,&a0, &a0State))
        {
             ::QAction*sipRes;

            sipRes = sipCpp->addAction(*a0);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            return sipConvertFromType(sipRes,sipType_QAction,NULL);
        }
    }

    {
        const  ::QIcon* a0;
        const  ::QString* a1;
        int a1State = 0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J1", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QIcon, &a0, sipType_QString,&a1, &a1State))
        {
             ::QAction*sipRes;

            sipRes = sipCpp->addAction(*a0,*a1);
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);

            return sipConvertFromType(sipRes,sipType_QAction,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_addAction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_removeAction(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_removeAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QAction* a0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QAction, &a0))
        {
             ::QAction*sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::KSelectAction::removeAction(a0) : sipCpp->removeAction(a0));

            return sipConvertFromType(sipRes,sipType_QAction,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_removeAction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_insertAction(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_insertAction(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QAction* a0;
         ::QAction* a1;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J8", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QAction, &a0, sipType_QAction, &a1))
        {
            (sipSelfWasArg ? sipCpp-> ::KSelectAction::insertAction(a0,a1) : sipCpp->insertAction(a0,a1));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_insertAction, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_setItems(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_setItems(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::QStringList* a0;
        int a0State = 0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QStringList,&a0, &a0State))
        {
            sipCpp->setItems(*a0);
            sipReleaseType(const_cast< ::QStringList *>(a0),sipType_QStringList,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_setItems, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_items(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_items(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
             ::QStringList*sipRes;

            sipRes = new  ::QStringList(sipCpp->items());

            return sipConvertFromNewType(sipRes,sipType_QStringList,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_items, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_isEditable(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_isEditable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->isEditable();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_isEditable, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_setEditable(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_setEditable(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KSelectAction, &sipCpp, &a0))
        {
            sipCpp->setEditable(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_setEditable, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_comboWidth(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_comboWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
            int sipRes;

            sipRes = sipCpp->comboWidth();

            return SIPLong_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_comboWidth, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_setComboWidth(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_setComboWidth(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KSelectAction, &sipCpp, &a0))
        {
            sipCpp->setComboWidth(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_setComboWidth, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_setMaxComboViewCount(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_setMaxComboViewCount(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_KSelectAction, &sipCpp, &a0))
        {
            sipCpp->setMaxComboViewCount(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_setMaxComboViewCount, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_clear(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_clear(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
            sipCpp->clear();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_clear, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_removeAllActions(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_removeAllActions(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
            sipCpp->removeAllActions();

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_removeAllActions, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_setMenuAccelsEnabled(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_setMenuAccelsEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bb", &sipSelf, sipType_KSelectAction, &sipCpp, &a0))
        {
            sipCpp->setMenuAccelsEnabled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_setMenuAccelsEnabled, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_menuAccelsEnabled(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_menuAccelsEnabled(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        const  ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_KSelectAction, &sipCpp))
        {
            bool sipRes;

            sipRes = sipCpp->menuAccelsEnabled();

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_menuAccelsEnabled, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_changeItem(PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_changeItem(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = NULL;

    {
        int a0;
        const  ::QString* a1;
        int a1State = 0;
         ::KSelectAction *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_KSelectAction, &sipCpp, &a0, sipType_QString,&a1, &a1State))
        {
            sipCpp->changeItem(a0,*a1);
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_changeItem, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_actionTriggered(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_actionTriggered(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QAction* a0;
        sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QAction, &a0))
        {
            sipCpp->sipProtectVirt_actionTriggered(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_actionTriggered, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_slotToggled(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_slotToggled(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;

    {
        bool a0;
        sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "Bb", &sipSelf, sipType_KSelectAction, &sipCpp, &a0))
        {
            sipCpp->sipProtect_slotToggled(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_slotToggled, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_createWidget(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_createWidget(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QWidget* a0;
        sipWrapper *sipOwner = 0;
        sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJH", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QWidget, &a0, &sipOwner))
        {
             ::QWidget*sipRes;

            sipRes = sipCpp->sipProtectVirt_createWidget(sipSelfWasArg,a0);

            if (sipOwner)
                sipTransferTo(sipSelf, (PyObject *)sipOwner);
            else
                sipTransferBack(sipSelf);

            return sipConvertFromType(sipRes,sipType_QWidget,NULL);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_createWidget, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_deleteWidget(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_deleteWidget(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QWidget* a0;
        sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QWidget, &a0))
        {
            sipCpp->sipProtectVirt_deleteWidget(sipSelfWasArg,a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_deleteWidget, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_event(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_event(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QEvent* a0;
        sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QEvent, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_event(sipSelfWasArg,a0);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_event, NULL);

    return NULL;
}


extern "C" {static PyObject *meth_KSelectAction_eventFilter(PyObject *, PyObject *, PyObject *);}
static PyObject *meth_KSelectAction_eventFilter(PyObject *sipSelf, PyObject *sipArgs, PyObject *sipKwds)
{
    PyObject *sipParseErr = NULL;
    bool sipSelfWasArg = (!sipSelf || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QObject* a0;
         ::QEvent* a1;
        sipKSelectAction *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8J8", &sipSelf, sipType_KSelectAction, &sipCpp, sipType_QObject, &a0, sipType_QEvent, &a1))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_eventFilter(sipSelfWasArg,a0,a1);

            return PyBool_FromLong(sipRes);
        }
    }

    /* Raise an exception if the arguments couldn't be parsed. */
    sipNoMethod(sipParseErr, sipName_KSelectAction, sipName_eventFilter, NULL);

    return NULL;
}


/* Cast a pointer to a type somewhere in its inheritance hierarchy. */
extern "C" {static void *cast_KSelectAction(void *, const sipTypeDef *);}
static void *cast_KSelectAction(void *sipCppV, const sipTypeDef *targetType)
{
     ::KSelectAction *sipCpp = reinterpret_cast< ::KSelectAction *>(sipCppV);

    if (targetType == sipType_QWidgetAction)
        return static_cast< ::QWidgetAction *>(sipCpp);

    if (targetType == sipType_QAction)
        return static_cast< ::QAction *>(sipCpp);

    if (targetType == sipType_QObject)
        return static_cast< ::QObject *>(sipCpp);

    return sipCppV;
}


/* Call the instance's destructor. */
extern "C" {static void release_KSelectAction(void *, int);}
static void release_KSelectAction(void *sipCppV, int)
{
     ::KSelectAction *sipCpp = reinterpret_cast< ::KSelectAction *>(sipCppV);

    if (QThread::currentThread() == sipCpp->thread())
        delete sipCpp;
    else
        sipCpp->deleteLater();
}


extern "C" {static void dealloc_KSelectAction(sipSimpleWrapper *);}
static void dealloc_KSelectAction(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipKSelectAction *>(sipGetAddress(sipSelf))->sipPySelf = NULL;

    if (sipIsOwnedByPython(sipSelf))
    {
        release_KSelectAction(sipGetAddress(sipSelf), sipIsDerivedClass(sipSelf));
    }
}


extern "C" {static void *init_type_KSelectAction(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_KSelectAction(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipKSelectAction *sipCpp = 0;

    {
         ::QObject* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "JH", sipType_QObject, &a0, sipOwner))
        {
            sipCpp = new sipKSelectAction(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QObject* a1;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J1JH", sipType_QString,&a0, &a0State, sipType_QObject, &a1, sipOwner))
        {
            sipCpp = new sipKSelectAction(*a0,a1);
            sipReleaseType(const_cast< ::QString *>(a0),sipType_QString,a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QIcon* a0;
        const  ::QString* a1;
        int a1State = 0;
         ::QObject* a2;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J9J1JH", sipType_QIcon, &a0, sipType_QString,&a1, &a1State, sipType_QObject, &a2, sipOwner))
        {
            sipCpp = new sipKSelectAction(*a0,*a1,a2);
            sipReleaseType(const_cast< ::QString *>(a1),sipType_QString,a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KSelectAction[] = {{36, 2, 1}};


static PyMethodDef methods_KSelectAction[] = {
    {SIP_MLNAME_CAST(sipName_action), meth_KSelectAction_action, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_actionTriggered), (PyCFunction)meth_KSelectAction_actionTriggered, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_actions), meth_KSelectAction_actions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_addAction), meth_KSelectAction_addAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_changeItem), meth_KSelectAction_changeItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_KSelectAction_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_clear), meth_KSelectAction_clear, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_comboWidth), meth_KSelectAction_comboWidth, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_KSelectAction_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_createWidget), (PyCFunction)meth_KSelectAction_createWidget, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_createdWidgets), (PyCFunction)meth_KSelectAction_createdWidgets, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_currentAction), meth_KSelectAction_currentAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentItem), meth_KSelectAction_currentItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_currentText), meth_KSelectAction_currentText, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_KSelectAction_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_deleteWidget), (PyCFunction)meth_KSelectAction_deleteWidget, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_KSelectAction_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_event), (PyCFunction)meth_KSelectAction_event, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_eventFilter), (PyCFunction)meth_KSelectAction_eventFilter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_insertAction), meth_KSelectAction_insertAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isEditable), meth_KSelectAction_isEditable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_KSelectAction_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_items), meth_KSelectAction_items, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_menuAccelsEnabled), meth_KSelectAction_menuAccelsEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_KSelectAction_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAction), meth_KSelectAction_removeAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_removeAllActions), meth_KSelectAction_removeAllActions, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_selectableActionGroup), meth_KSelectAction_selectableActionGroup, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_KSelectAction_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_KSelectAction_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setComboWidth), meth_KSelectAction_setComboWidth, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentAction), meth_KSelectAction_setCurrentAction, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setCurrentItem), meth_KSelectAction_setCurrentItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setEditable), meth_KSelectAction_setEditable, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setItems), meth_KSelectAction_setItems, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMaxComboViewCount), meth_KSelectAction_setMaxComboViewCount, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setMenuAccelsEnabled), meth_KSelectAction_setMenuAccelsEnabled, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setToolBarMode), meth_KSelectAction_setToolBarMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_setToolButtonPopupMode), meth_KSelectAction_setToolButtonPopupMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_slotToggled), (PyCFunction)meth_KSelectAction_slotToggled, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_KSelectAction_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_toolBarMode), meth_KSelectAction_toolBarMode, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_toolButtonPopupMode), meth_KSelectAction_toolButtonPopupMode, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KSelectAction[] = {
    {sipName_ComboBoxMode, static_cast<int>( ::KSelectAction::ComboBoxMode), 80},
    {sipName_MenuMode, static_cast<int>( ::KSelectAction::MenuMode), 80},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_KSelectAction[] = {
    {"triggered(QAction*)", 0, 0, 0},
    {"triggered(int)", 0, 0, 0},
    {"triggered(QString)", 0, 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_KSelectAction = {
    & ::KSelectAction::staticMetaObject,
    0,
    signals_KSelectAction,
    0
};


sipClassTypeDef sipTypeDef_KWidgetsAddons_KSelectAction = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_KSelectAction,
        {0},
        &plugin_KSelectAction
    },
    {
        sipNameNr_KSelectAction,
        {0, 0, 1},
        43, methods_KSelectAction,
        2, enummembers_KSelectAction,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KSelectAction,
    0,
    init_type_KSelectAction,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KSelectAction,
    0,
    0,
    0,
    release_KSelectAction,
    cast_KSelectAction,
    0,
    0,
    0,
    0,
    0,
    0
};
