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

#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 sipKCategoryDrawer : public  ::KCategoryDrawer
{
public:
    sipKCategoryDrawer( ::KCategorizedView*);
    virtual ~sipKCategoryDrawer();

    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 mouseLeft(const  ::QModelIndex&,const  ::QRect&);
    void mouseButtonDoubleClicked(const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);
    void mouseMoved(const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);
    void mouseButtonReleased(const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);
    void mouseButtonPressed(const  ::QModelIndex&,const  ::QRect&, ::QMouseEvent*);
    int rightMargin() const;
    int leftMargin() const;
    int categoryHeight(const  ::QModelIndex&,const  ::QStyleOption&) const;
    void drawCategory(const  ::QModelIndex&,int,const  ::QStyleOption&, ::QPainter*) const;
    bool event( ::QEvent*);
    bool eventFilter( ::QObject*, ::QEvent*);
    void timerEvent( ::QTimerEvent*);
    void childEvent( ::QChildEvent*);
    void customEvent( ::QEvent*);
    void connectNotify(const  ::QMetaMethod&);
    void disconnectNotify(const  ::QMetaMethod&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[16];
};

sipKCategoryDrawer::sipKCategoryDrawer( ::KCategorizedView*a0):  ::KCategoryDrawer(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    return  ::KCategoryDrawer::metaObject();
}

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

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

    return _id;
}

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

    return (sip_KItemViews_qt_metacast(sipPySelf, sipType_KCategoryDrawer, _clname, &sipCpp) ? sipCpp :  ::KCategoryDrawer::qt_metacast(_clname));
}

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

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

    if (!sipMeth)
    {
         ::KCategoryDrawer::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);
}

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

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

    if (!sipMeth)
    {
         ::KCategoryDrawer::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 sipKCategoryDrawer::mouseMoved(const  ::QModelIndex& a0,const  ::QRect& a1, ::QMouseEvent*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KCategoryDrawer::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 sipKCategoryDrawer::mouseButtonReleased(const  ::QModelIndex& a0,const  ::QRect& a1, ::QMouseEvent*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KCategoryDrawer::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 sipKCategoryDrawer::mouseButtonPressed(const  ::QModelIndex& a0,const  ::QRect& a1, ::QMouseEvent*a2)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KCategoryDrawer::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);
}

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

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

    if (!sipMeth)
        return  ::KCategoryDrawer::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);
}

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

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

    if (!sipMeth)
        return  ::KCategoryDrawer::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 sipKCategoryDrawer::categoryHeight(const  ::QModelIndex& a0,const  ::QStyleOption& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KCategoryDrawer::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);
}

void sipKCategoryDrawer::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[8]),sipPySelf,NULL,sipName_drawCategory);

    if (!sipMeth)
    {
         ::KCategoryDrawer::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);
}

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

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

    if (!sipMeth)
        return  ::KCategoryDrawer::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);
}

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

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

    if (!sipMeth)
        return  ::KCategoryDrawer::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);
}

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

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

    if (!sipMeth)
    {
         ::KCategoryDrawer::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);
}

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

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

    if (!sipMeth)
    {
         ::KCategoryDrawer::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 sipKCategoryDrawer::customEvent( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KCategoryDrawer::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 sipKCategoryDrawer::connectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KCategoryDrawer::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 sipKCategoryDrawer::disconnectNotify(const  ::QMetaMethod& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KCategoryDrawer::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);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

    {
        const sipKCategoryDrawer *sipCpp;

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

    return NULL;
}


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

    {
        PyObject * a0;
        const sipKCategoryDrawer *sipCpp;

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

    return NULL;
}


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

    {
         ::QTimerEvent* a0;
        sipKCategoryDrawer *sipCpp;

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

    return NULL;
}


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

    {
         ::QChildEvent* a0;
        sipKCategoryDrawer *sipCpp;

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

    return NULL;
}


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

    {
         ::QEvent* a0;
        sipKCategoryDrawer *sipCpp;

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        const sipKCategoryDrawer *sipCpp;

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

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        const  ::KCategoryDrawer *sipCpp;

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

            sipRes = sipCpp->view();

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

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        int a1;
        const  ::QStyleOption* a2;
         ::QPainter* a3;
        const  ::KCategoryDrawer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9iJ9J8", &sipSelf, sipType_KCategoryDrawer, &sipCpp, sipType_QModelIndex, &a0, &a1, sipType_QStyleOption, &a2, sipType_QPainter, &a3))
        {
            (sipSelfWasArg ? sipCpp-> ::KCategoryDrawer::drawCategory(*a0,a1,*a2,a3) : sipCpp->drawCategory(*a0,a1,*a2,a3));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        const  ::QStyleOption* a1;
        const  ::KCategoryDrawer *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_KCategoryDrawer, &sipCpp, sipType_QModelIndex, &a0, sipType_QStyleOption, &a1))
        {
            int sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::KCategoryDrawer::categoryHeight(*a0,*a1) : sipCpp->categoryHeight(*a0,*a1));

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KCategoryDrawer *sipCpp;

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

            sipRes = (sipSelfWasArg ? sipCpp-> ::KCategoryDrawer::leftMargin() : sipCpp->leftMargin());

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::KCategoryDrawer *sipCpp;

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

            sipRes = (sipSelfWasArg ? sipCpp-> ::KCategoryDrawer::rightMargin() : sipCpp->rightMargin());

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9J8", &sipSelf, sipType_KCategoryDrawer, &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_KCategoryDrawer, sipName_mouseButtonPressed, NULL);

    return NULL;
}


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

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9J8", &sipSelf, sipType_KCategoryDrawer, &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_KCategoryDrawer, sipName_mouseButtonReleased, NULL);

    return NULL;
}


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

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9J8", &sipSelf, sipType_KCategoryDrawer, &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_KCategoryDrawer, sipName_mouseMoved, NULL);

    return NULL;
}


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

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9J8", &sipSelf, sipType_KCategoryDrawer, &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_KCategoryDrawer, sipName_mouseButtonDoubleClicked, NULL);

    return NULL;
}


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

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

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9J9", &sipSelf, sipType_KCategoryDrawer, &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_KCategoryDrawer, sipName_mouseLeft, NULL);

    return NULL;
}


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

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

    return sipCppV;
}


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

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


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

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


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

    {
         ::KCategorizedView* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


/* Define this type's super-types. */
static sipEncodedTypeDef supers_KCategoryDrawer[] = {{19, 0, 1}};


static PyMethodDef methods_KCategoryDrawer[] = {
    {SIP_MLNAME_CAST(sipName_categoryHeight), meth_KCategoryDrawer_categoryHeight, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_KCategoryDrawer_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_KCategoryDrawer_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_KCategoryDrawer_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_KCategoryDrawer_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_drawCategory), meth_KCategoryDrawer_drawCategory, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_KCategoryDrawer_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_leftMargin), meth_KCategoryDrawer_leftMargin, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseButtonDoubleClicked), (PyCFunction)meth_KCategoryDrawer_mouseButtonDoubleClicked, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseButtonPressed), (PyCFunction)meth_KCategoryDrawer_mouseButtonPressed, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseButtonReleased), (PyCFunction)meth_KCategoryDrawer_mouseButtonReleased, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseLeft), (PyCFunction)meth_KCategoryDrawer_mouseLeft, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_mouseMoved), (PyCFunction)meth_KCategoryDrawer_mouseMoved, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_KCategoryDrawer_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_rightMargin), meth_KCategoryDrawer_rightMargin, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_KCategoryDrawer_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_KCategoryDrawer_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_KCategoryDrawer_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_view), meth_KCategoryDrawer_view, METH_VARARGS, NULL}
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_KCategoryDrawer[] = {
    {"actionRequested(int,QModelIndex)", 0, 0, 0},
    {"collapseOrExpandClicked(QModelIndex)", 0, 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_KCategoryDrawer = {
    & ::KCategoryDrawer::staticMetaObject,
    0,
    signals_KCategoryDrawer,
    0
};


sipClassTypeDef sipTypeDef_KItemViews_KCategoryDrawer = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_KCategoryDrawer,
        {0},
        &plugin_KCategoryDrawer
    },
    {
        sipNameNr_KCategoryDrawer,
        {0, 0, 1},
        19, methods_KCategoryDrawer,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KCategoryDrawer,
    0,
    init_type_KCategoryDrawer,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KCategoryDrawer,
    0,
    0,
    0,
    release_KCategoryDrawer,
    cast_KCategoryDrawer,
    0,
    0,
    0,
    0,
    0,
    0
};
