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

#include "sipAPIKItemViews.h"

#include <kcategorydrawer.h>

#include <kcategorizedview.h>
#include <qabstractitemmodel.h>
#include <qrect.h>
#include <qevent.h>
#include <qstyleoption.h>
#include <qpainter.h>
#include <qmetaobject.h>
#include <qcoreevent.h>
#include <qcoreevent.h>
#include <qcoreevent.h>
#include <qobject.h>
#include <qstring.h>
#include <qvariant.h>
#include <qlist.h>
#include <qbytearray.h>
#include <qlist.h>
#include <qnamespace.h>
#include <qthread.h>
#include <qnamespace.h>
#include <qregexp.h>
#include <qregularexpression.h>
#include <qobjectdefs.h>


class sipKCategoryDrawerV3 : public  ::KCategoryDrawerV3
{
public:
    sipKCategoryDrawerV3( ::KCategorizedView*);
    virtual ~sipKCategoryDrawerV3();

    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;
    void sipProtectVirt_mouseButtonPressed(bool,const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);
    void sipProtectVirt_mouseButtonReleased(bool,const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);
    void sipProtectVirt_mouseMoved(bool,const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);
    void sipProtectVirt_mouseButtonDoubleClicked(bool,const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);
    void sipProtectVirt_mouseLeft(bool,const  ::QModelIndex&,const  ::QRect&);

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void disconnectNotify(const  ::QMetaMethod&);
    void connectNotify(const  ::QMetaMethod&);
    void customEvent( ::QEvent*);
    void childEvent( ::QChildEvent*);
    void timerEvent( ::QTimerEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    bool event( ::QEvent*);
    void drawCategory(const  ::QModelIndex&,int,const  ::QStyleOption&, ::QPainter*) const;
    int categoryHeight(const  ::QModelIndex&,const  ::QStyleOption&) const;
    int leftMargin() const;
    int rightMargin() const;
    void mouseButtonPressed(const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);
    void mouseButtonReleased(const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);
    void mouseMoved(const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);
    void mouseButtonDoubleClicked(const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);
    void mouseLeft(const  ::QModelIndex&,const  ::QRect&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[16];
};

sipKCategoryDrawerV3::sipKCategoryDrawerV3( ::KCategorizedView*a0):  ::KCategoryDrawerV3(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

const QMetaObject *sipKCategoryDrawerV3::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_KItemViews_qt_metaobject(sipPySelf,sipType_KCategoryDrawerV3);

    return  ::KCategoryDrawerV3::metaObject();
}

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

    if (_id >= 0)
        _id = sip_KItemViews_qt_metacall(sipPySelf,sipType_KCategoryDrawerV3,_c,_id,_a);

    return _id;
}

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

    return (sip_KItemViews_qt_metacast(sipPySelf, sipType_KCategoryDrawerV3, _clname, &sipCpp) ? sipCpp :  ::KCategoryDrawerV3::qt_metacast(_clname));
}

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

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

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

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

    sipVH_KItemViews_31(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_KItemViews_31(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_KItemViews_30(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_KItemViews_29(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

    sipVH_KItemViews_28(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

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

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

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

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

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

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

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

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

    return sipVH_KItemViews_26(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipKCategoryDrawerV3::drawCategory(const  ::QModelIndex& a0,int a1,const  ::QStyleOption& a2, ::QPainter*a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[7]),sipPySelf,NULL,sipName_drawCategory);

    if (!sipMeth)
    {
         ::KCategoryDrawerV3::drawCategory(a0,a1,a2,a3);
        return;
    }

    extern void sipVH_KItemViews_86(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,int,const  ::QStyleOption&, ::QPainter*);

    sipVH_KItemViews_86(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2, a3);
}

int sipKCategoryDrawerV3::categoryHeight(const  ::QModelIndex& a0,const  ::QStyleOption& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[8]),sipPySelf,NULL,sipName_categoryHeight);

    if (!sipMeth)
        return  ::KCategoryDrawerV3::categoryHeight(a0,a1);

    extern int sipVH_KItemViews_87(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const  ::QStyleOption&);

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

int sipKCategoryDrawerV3::leftMargin() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[9]),sipPySelf,NULL,sipName_leftMargin);

    if (!sipMeth)
        return  ::KCategoryDrawerV3::leftMargin();

    extern int sipVH_KItemViews_63(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_KItemViews_63(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

int sipKCategoryDrawerV3::rightMargin() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[10]),sipPySelf,NULL,sipName_rightMargin);

    if (!sipMeth)
        return  ::KCategoryDrawerV3::rightMargin();

    extern int sipVH_KItemViews_63(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

    return sipVH_KItemViews_63(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth);
}

void sipKCategoryDrawerV3::mouseButtonPressed(const  ::QModelIndex& a0,const  ::QRect& a1, ::QMouseEvent*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KCategoryDrawerV3::mouseButtonPressed(a0,a1,a2);
        return;
    }

    extern void sipVH_KItemViews_88(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);

    sipVH_KItemViews_88(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKCategoryDrawerV3::mouseButtonReleased(const  ::QModelIndex& a0,const  ::QRect& a1, ::QMouseEvent*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[12],sipPySelf,NULL,sipName_mouseButtonReleased);

    if (!sipMeth)
    {
         ::KCategoryDrawerV3::mouseButtonReleased(a0,a1,a2);
        return;
    }

    extern void sipVH_KItemViews_88(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);

    sipVH_KItemViews_88(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKCategoryDrawerV3::mouseMoved(const  ::QModelIndex& a0,const  ::QRect& a1, ::QMouseEvent*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[13],sipPySelf,NULL,sipName_mouseMoved);

    if (!sipMeth)
    {
         ::KCategoryDrawerV3::mouseMoved(a0,a1,a2);
        return;
    }

    extern void sipVH_KItemViews_88(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);

    sipVH_KItemViews_88(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKCategoryDrawerV3::mouseButtonDoubleClicked(const  ::QModelIndex& a0,const  ::QRect& a1, ::QMouseEvent*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[14],sipPySelf,NULL,sipName_mouseButtonDoubleClicked);

    if (!sipMeth)
    {
         ::KCategoryDrawerV3::mouseButtonDoubleClicked(a0,a1,a2);
        return;
    }

    extern void sipVH_KItemViews_88(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);

    sipVH_KItemViews_88(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1, a2);
}

void sipKCategoryDrawerV3::mouseLeft(const  ::QModelIndex& a0,const  ::QRect& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[15],sipPySelf,NULL,sipName_mouseLeft);

    if (!sipMeth)
    {
         ::KCategoryDrawerV3::mouseLeft(a0,a1);
        return;
    }

    extern void sipVH_KItemViews_89(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&,const  ::QRect&);

    sipVH_KItemViews_89(sipGILState, sipImportedVirtErrorHandlers_KItemViews_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

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

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

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

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

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

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

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

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

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

void sipKCategoryDrawerV3::sipProtectVirt_mouseButtonPressed(bool sipSelfWasArg,const  ::QModelIndex& a0,const  ::QRect& a1, ::QMouseEvent*a2)
{
    (sipSelfWasArg ?  ::KCategoryDrawer::mouseButtonPressed(a0,a1,a2) : mouseButtonPressed(a0,a1,a2));
}

void sipKCategoryDrawerV3::sipProtectVirt_mouseButtonReleased(bool sipSelfWasArg,const  ::QModelIndex& a0,const  ::QRect& a1, ::QMouseEvent*a2)
{
    (sipSelfWasArg ?  ::KCategoryDrawer::mouseButtonReleased(a0,a1,a2) : mouseButtonReleased(a0,a1,a2));
}

void sipKCategoryDrawerV3::sipProtectVirt_mouseMoved(bool sipSelfWasArg,const  ::QModelIndex& a0,const  ::QRect& a1, ::QMouseEvent*a2)
{
    (sipSelfWasArg ?  ::KCategoryDrawer::mouseMoved(a0,a1,a2) : mouseMoved(a0,a1,a2));
}

void sipKCategoryDrawerV3::sipProtectVirt_mouseButtonDoubleClicked(bool sipSelfWasArg,const  ::QModelIndex& a0,const  ::QRect& a1, ::QMouseEvent*a2)
{
    (sipSelfWasArg ?  ::KCategoryDrawer::mouseButtonDoubleClicked(a0,a1,a2) : mouseButtonDoubleClicked(a0,a1,a2));
}

void sipKCategoryDrawerV3::sipProtectVirt_mouseLeft(bool sipSelfWasArg,const  ::QModelIndex& a0,const  ::QRect& a1)
{
    (sipSelfWasArg ?  ::KCategoryDrawer::mouseLeft(a0,a1) : mouseLeft(a0,a1));
}


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

    {
        const sipKCategoryDrawerV3 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KCategoryDrawerV3, &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_KCategoryDrawerV3, sipName_sender, NULL);

    return NULL;
}


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

    {
        PyObject * a0;
        const sipKCategoryDrawerV3 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BP0", &sipSelf, sipType_KCategoryDrawerV3, &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_KCategoryDrawerV3, sipName_receivers, NULL);

    return NULL;
}


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

    {
         ::QTimerEvent* a0;
        sipKCategoryDrawerV3 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KCategoryDrawerV3, &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_KCategoryDrawerV3, sipName_timerEvent, NULL);

    return NULL;
}


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

    {
         ::QChildEvent* a0;
        sipKCategoryDrawerV3 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KCategoryDrawerV3, &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_KCategoryDrawerV3, sipName_childEvent, NULL);

    return NULL;
}


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

    {
         ::QEvent* a0;
        sipKCategoryDrawerV3 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KCategoryDrawerV3, &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_KCategoryDrawerV3, sipName_customEvent, NULL);

    return NULL;
}


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

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KCategoryDrawerV3, &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_KCategoryDrawerV3, sipName_connectNotify, NULL);

    return NULL;
}


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

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KCategoryDrawerV3, &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_KCategoryDrawerV3, sipName_disconnectNotify, NULL);

    return NULL;
}


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

    {
        const sipKCategoryDrawerV3 *sipCpp;

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

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KCategoryDrawerV3, &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_KCategoryDrawerV3, sipName_isSignalConnected, NULL);

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        const  ::QRect* a1;
         ::QMouseEvent* a2;
        sipKCategoryDrawerV3 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9J8", &sipSelf, sipType_KCategoryDrawerV3, &sipCpp, sipType_QModelIndex, &a0, sipType_QRect, &a1, sipType_QMouseEvent, &a2))
        {
            sipCpp->sipProtectVirt_mouseButtonPressed(sipSelfWasArg,*a0,*a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        const  ::QRect* a1;
         ::QMouseEvent* a2;
        sipKCategoryDrawerV3 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9J8", &sipSelf, sipType_KCategoryDrawerV3, &sipCpp, sipType_QModelIndex, &a0, sipType_QRect, &a1, sipType_QMouseEvent, &a2))
        {
            sipCpp->sipProtectVirt_mouseButtonReleased(sipSelfWasArg,*a0,*a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        const  ::QRect* a1;
         ::QMouseEvent* a2;
        sipKCategoryDrawerV3 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9J8", &sipSelf, sipType_KCategoryDrawerV3, &sipCpp, sipType_QModelIndex, &a0, sipType_QRect, &a1, sipType_QMouseEvent, &a2))
        {
            sipCpp->sipProtectVirt_mouseMoved(sipSelfWasArg,*a0,*a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        const  ::QRect* a1;
         ::QMouseEvent* a2;
        sipKCategoryDrawerV3 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9J8", &sipSelf, sipType_KCategoryDrawerV3, &sipCpp, sipType_QModelIndex, &a0, sipType_QRect, &a1, sipType_QMouseEvent, &a2))
        {
            sipCpp->sipProtectVirt_mouseButtonDoubleClicked(sipSelfWasArg,*a0,*a1,a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        const  ::QRect* a1;
        sipKCategoryDrawerV3 *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9", &sipSelf, sipType_KCategoryDrawerV3, &sipCpp, sipType_QModelIndex, &a0, sipType_QRect, &a1))
        {
            sipCpp->sipProtectVirt_mouseLeft(sipSelfWasArg,*a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    if (targetType == sipType_KCategoryDrawer)
        return static_cast< ::KCategoryDrawer *>(sipCpp);

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

    return sipCppV;
}


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

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


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

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


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

    {
         ::KCategorizedView* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8", sipType_KCategorizedView, &a0))
        {
            sipCpp = new sipKCategoryDrawerV3(a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KCategoryDrawerV3[] = {{3, 255, 1}};


static PyMethodDef methods_KCategoryDrawerV3[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_KCategoryDrawerV3_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_KCategoryDrawerV3_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_KCategoryDrawerV3_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_KCategoryDrawerV3_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_KCategoryDrawerV3_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseButtonDoubleClicked), (PyCFunction)meth_KCategoryDrawerV3_mouseButtonDoubleClicked, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseButtonPressed), (PyCFunction)meth_KCategoryDrawerV3_mouseButtonPressed, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseButtonReleased), (PyCFunction)meth_KCategoryDrawerV3_mouseButtonReleased, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseLeft), (PyCFunction)meth_KCategoryDrawerV3_mouseLeft, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoved), (PyCFunction)meth_KCategoryDrawerV3_mouseMoved, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_KCategoryDrawerV3_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_KCategoryDrawerV3_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_KCategoryDrawerV3_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_KCategoryDrawerV3_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL}
};


static pyqt5ClassPluginDef plugin_KCategoryDrawerV3 = {
    & ::KCategoryDrawerV3::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_KItemViews_KCategoryDrawerV3 = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_KCategoryDrawerV3,
        {0},
        &plugin_KCategoryDrawerV3
    },
    {
        sipNameNr_KCategoryDrawerV3,
        {0, 0, 1},
        14, methods_KCategoryDrawerV3,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KCategoryDrawerV3,
    0,
    init_type_KCategoryDrawerV3,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCategoryDrawerV3,
    0,
    0,
    0,
    release_KCategoryDrawerV3,
    cast_KCategoryDrawerV3,
    0,
    0,
    0,
    0,
    0,
    0
};
