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

#include "sipAPIKItemViews.h"

#include <kwidgetitemdelegate.h>

#include <qabstractitemview.h>
#include <qobject.h>
#include <qlist.h>
#include <qcoreevent.h>
#include <qwidget.h>
#include <qpainter.h>
#include <qstyleoption.h>
#include <qabstractitemmodel.h>
#include <qlist.h>
#include <qabstractitemmodel.h>
#include <qabstractitemdelegate.h>
#include <qevent.h>
#include <qabstractitemmodel.h>
#include <qsize.h>
#include <qmetaobject.h>
#include <qcoreevent.h>
#include <qcoreevent.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 sipKWidgetItemDelegate : public  ::KWidgetItemDelegate
{
public:
    sipKWidgetItemDelegate( ::QAbstractItemView*, ::QObject*);
    virtual ~sipKWidgetItemDelegate();

    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_createItemWidgets(const  ::QModelIndex&) const;
    void sipProtect_updateItemWidgets(const QList< ::QWidget*>,const  ::QStyleOptionViewItem&,const  ::QPersistentModelIndex&) const;
    void sipProtect_paintWidgets( ::QPainter*,const  ::QStyleOptionViewItem&,const  ::QPersistentModelIndex&) const;
    void sipProtect_setBlockedEventTypes( ::QWidget*,QList< ::QEvent::Type>) const;
    QList< ::QEvent::Type> sipProtect_blockedEventTypes( ::QWidget*) const;

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void updateItemWidgets(const QList< ::QWidget*>,const  ::QStyleOptionViewItem&,const  ::QPersistentModelIndex&) const;
    QList< ::QWidget*> createItemWidgets(const  ::QModelIndex&) const;
    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 paint( ::QPainter*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&) const;
     ::QSize sizeHint(const  ::QStyleOptionViewItem&,const  ::QModelIndex&) const;
     ::QWidget* createEditor( ::QWidget*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&) const;
    void setEditorData( ::QWidget*,const  ::QModelIndex&) const;
    void setModelData( ::QWidget*, ::QAbstractItemModel*,const  ::QModelIndex&) const;
    void updateEditorGeometry( ::QWidget*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&) const;
    void destroyEditor( ::QWidget*,const  ::QModelIndex&) const;
    bool editorEvent( ::QEvent*, ::QAbstractItemModel*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&);
    bool helpEvent( ::QHelpEvent*, ::QAbstractItemView*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&);

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[18];
};

sipKWidgetItemDelegate::sipKWidgetItemDelegate( ::QAbstractItemView*a0, ::QObject*a1):  ::KWidgetItemDelegate(a0,a1), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    return  ::KWidgetItemDelegate::metaObject();
}

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

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

    return _id;
}

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

    return (sip_KItemViews_qt_metacast(sipPySelf, sipType_KWidgetItemDelegate, _clname, &sipCpp) ? sipCpp :  ::KWidgetItemDelegate::qt_metacast(_clname));
}

void sipKWidgetItemDelegate::updateItemWidgets(const QList< ::QWidget*> a0,const  ::QStyleOptionViewItem& a1,const  ::QPersistentModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[0]),sipPySelf,sipName_KWidgetItemDelegate,sipName_updateItemWidgets);

    if (!sipMeth)
        return;

    extern void sipVH_KItemViews_105(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const QList< ::QWidget*>,const  ::QStyleOptionViewItem&,const  ::QPersistentModelIndex&);

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

QList< ::QWidget*> sipKWidgetItemDelegate::createItemWidgets(const  ::QModelIndex& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,const_cast<char *>(&sipPyMethods[1]),sipPySelf,sipName_KWidgetItemDelegate,sipName_createItemWidgets);

    if (!sipMeth)
        return QList< ::QWidget*>();

    extern QList< ::QWidget*> sipVH_KItemViews_104(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QModelIndex&);

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

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

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

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

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

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

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

    if (!sipMeth)
    {
         ::KWidgetItemDelegate::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 sipKWidgetItemDelegate::childEvent( ::QChildEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KWidgetItemDelegate::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 sipKWidgetItemDelegate::timerEvent( ::QTimerEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KWidgetItemDelegate::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 sipKWidgetItemDelegate::eventFilter( ::QObject*a0, ::QEvent*a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KWidgetItemDelegate::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 sipKWidgetItemDelegate::event( ::QEvent*a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KWidgetItemDelegate::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 sipKWidgetItemDelegate::paint( ::QPainter*a0,const  ::QStyleOptionViewItem& a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return;

    extern void sipVH_KItemViews_92(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPainter*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&);

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

 ::QSize sipKWidgetItemDelegate::sizeHint(const  ::QStyleOptionViewItem& a0,const  ::QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QSize();

    extern  ::QSize sipVH_KItemViews_93(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QStyleOptionViewItem&,const  ::QModelIndex&);

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

 ::QWidget* sipKWidgetItemDelegate::createEditor( ::QWidget*a0,const  ::QStyleOptionViewItem& a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KWidgetItemDelegate::createEditor(a0,a1,a2);

    extern  ::QWidget* sipVH_KItemViews_94(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&);

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

void sipKWidgetItemDelegate::setEditorData( ::QWidget*a0,const  ::QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KWidgetItemDelegate::setEditorData(a0,a1);
        return;
    }

    extern void sipVH_KItemViews_95(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*,const  ::QModelIndex&);

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

void sipKWidgetItemDelegate::setModelData( ::QWidget*a0, ::QAbstractItemModel*a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KWidgetItemDelegate::setModelData(a0,a1,a2);
        return;
    }

    extern void sipVH_KItemViews_96(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*, ::QAbstractItemModel*,const  ::QModelIndex&);

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

void sipKWidgetItemDelegate::updateEditorGeometry( ::QWidget*a0,const  ::QStyleOptionViewItem& a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KWidgetItemDelegate::updateEditorGeometry(a0,a1,a2);
        return;
    }

    extern void sipVH_KItemViews_97(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&);

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

void sipKWidgetItemDelegate::destroyEditor( ::QWidget*a0,const  ::QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KWidgetItemDelegate::destroyEditor(a0,a1);
        return;
    }

    extern void sipVH_KItemViews_95(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QWidget*,const  ::QModelIndex&);

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

bool sipKWidgetItemDelegate::editorEvent( ::QEvent*a0, ::QAbstractItemModel*a1,const  ::QStyleOptionViewItem& a2,const  ::QModelIndex& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[16],sipPySelf,NULL,sipName_editorEvent);

    if (!sipMeth)
        return  ::KWidgetItemDelegate::editorEvent(a0,a1,a2,a3);

    extern bool sipVH_KItemViews_98(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QEvent*, ::QAbstractItemModel*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&);

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

bool sipKWidgetItemDelegate::helpEvent( ::QHelpEvent*a0, ::QAbstractItemView*a1,const  ::QStyleOptionViewItem& a2,const  ::QModelIndex& a3)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState,&sipPyMethods[17],sipPySelf,NULL,sipName_helpEvent);

    if (!sipMeth)
        return  ::KWidgetItemDelegate::helpEvent(a0,a1,a2,a3);

    extern bool sipVH_KItemViews_99(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QHelpEvent*, ::QAbstractItemView*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&);

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

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

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

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

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

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

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

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

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

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

QList< ::QWidget*> sipKWidgetItemDelegate::sipProtect_createItemWidgets(const  ::QModelIndex& a0) const
{
    return createItemWidgets(a0);
}

void sipKWidgetItemDelegate::sipProtect_updateItemWidgets(const QList< ::QWidget*> a0,const  ::QStyleOptionViewItem& a1,const  ::QPersistentModelIndex& a2) const
{
    updateItemWidgets(a0,a1,a2);
}

void sipKWidgetItemDelegate::sipProtect_paintWidgets( ::QPainter*a0,const  ::QStyleOptionViewItem& a1,const  ::QPersistentModelIndex& a2) const
{
     ::KWidgetItemDelegate::paintWidgets(a0,a1,a2);
}

void sipKWidgetItemDelegate::sipProtect_setBlockedEventTypes( ::QWidget*a0,QList< ::QEvent::Type> a1) const
{
     ::KWidgetItemDelegate::setBlockedEventTypes(a0,a1);
}

QList< ::QEvent::Type> sipKWidgetItemDelegate::sipProtect_blockedEventTypes( ::QWidget*a0) const
{
    return  ::KWidgetItemDelegate::blockedEventTypes(a0);
}


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

    {
        const sipKWidgetItemDelegate *sipCpp;

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

    return NULL;
}


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

    {
        PyObject * a0;
        const sipKWidgetItemDelegate *sipCpp;

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

    return NULL;
}


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

    {
         ::QTimerEvent* a0;
        sipKWidgetItemDelegate *sipCpp;

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

    return NULL;
}


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

    {
         ::QChildEvent* a0;
        sipKWidgetItemDelegate *sipCpp;

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

    return NULL;
}


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

    {
         ::QEvent* a0;
        sipKWidgetItemDelegate *sipCpp;

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        const sipKWidgetItemDelegate *sipCpp;

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

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        const  ::KWidgetItemDelegate *sipCpp;

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

            sipRes = sipCpp->itemView();

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

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

    return NULL;
}


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

    {
        const  ::KWidgetItemDelegate *sipCpp;

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

            sipRes = new  ::QPersistentModelIndex(sipCpp->focusedIndex());

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

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

    return NULL;
}


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

    {
        const  ::QModelIndex* a0;
        const sipKWidgetItemDelegate *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KWidgetItemDelegate, &sipCpp, sipType_QModelIndex, &a0))
        {
            QList< ::QWidget*>*sipRes;

            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KWidgetItemDelegate, sipName_createItemWidgets);
                return NULL;
            }

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

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

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

    return NULL;
}


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

    {
        const QList< ::QWidget*>* a0;
        int a0State = 0;
        const  ::QStyleOptionViewItem* a1;
        const  ::QPersistentModelIndex* a2;
        const sipKWidgetItemDelegate *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ1J9J9", &sipSelf, sipType_KWidgetItemDelegate, &sipCpp, sipType_QList_0101QWidget,&a0, &a0State, sipType_QStyleOptionViewItem, &a1, sipType_QPersistentModelIndex, &a2))
        {
            if (!sipOrigSelf)
            {
                sipAbstractMethod(sipName_KWidgetItemDelegate, sipName_updateItemWidgets);
                return NULL;
            }

            sipCpp->sipProtect_updateItemWidgets(*a0,*a1,*a2);
            sipReleaseType(const_cast<QList< ::QWidget*> *>(a0),sipType_QList_0101QWidget,a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::QPainter* a0;
        const  ::QStyleOptionViewItem* a1;
        const  ::QPersistentModelIndex* a2;
        const sipKWidgetItemDelegate *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8J9J9", &sipSelf, sipType_KWidgetItemDelegate, &sipCpp, sipType_QPainter, &a0, sipType_QStyleOptionViewItem, &a1, sipType_QPersistentModelIndex, &a2))
        {
            sipCpp->sipProtect_paintWidgets(a0,*a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::QWidget* a0;
        QList< ::QEvent::Type>* a1;
        int a1State = 0;
        const sipKWidgetItemDelegate *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8J1", &sipSelf, sipType_KWidgetItemDelegate, &sipCpp, sipType_QWidget, &a0, sipType_QList_0100QEvent_Type,&a1, &a1State))
        {
            sipCpp->sipProtect_setBlockedEventTypes(a0,*a1);
            sipReleaseType(a1,sipType_QList_0100QEvent_Type,a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::QWidget* a0;
        const sipKWidgetItemDelegate *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8", &sipSelf, sipType_KWidgetItemDelegate, &sipCpp, sipType_QWidget, &a0))
        {
            QList< ::QEvent::Type>*sipRes;

            sipRes = new QList< ::QEvent::Type>(sipCpp->sipProtect_blockedEventTypes(a0));

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

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

    return NULL;
}


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

    if (targetType == sipType_QAbstractItemDelegate)
        return static_cast< ::QAbstractItemDelegate *>(sipCpp);

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

    return sipCppV;
}


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

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


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

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


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

    {
         ::QAbstractItemView* a0;
         ::QObject* a1 = nullptr;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, NULL, sipUnused, "J8|JH", sipType_QAbstractItemView, &a0, sipType_QObject, &a1, sipOwner))
        {
            sipCpp = new sipKWidgetItemDelegate(a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KWidgetItemDelegate[] = {
    {SIP_MLNAME_CAST(sipName_blockedEventTypes), (PyCFunction)meth_KWidgetItemDelegate_blockedEventTypes, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_KWidgetItemDelegate_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_KWidgetItemDelegate_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_createItemWidgets), (PyCFunction)meth_KWidgetItemDelegate_createItemWidgets, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_KWidgetItemDelegate_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_KWidgetItemDelegate_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_focusedIndex), meth_KWidgetItemDelegate_focusedIndex, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_KWidgetItemDelegate_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_itemView), meth_KWidgetItemDelegate_itemView, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_paintWidgets), (PyCFunction)meth_KWidgetItemDelegate_paintWidgets, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_KWidgetItemDelegate_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_KWidgetItemDelegate_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_KWidgetItemDelegate_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setBlockedEventTypes), (PyCFunction)meth_KWidgetItemDelegate_setBlockedEventTypes, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_KWidgetItemDelegate_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_updateItemWidgets), (PyCFunction)meth_KWidgetItemDelegate_updateItemWidgets, METH_VARARGS|METH_KEYWORDS, NULL}
};


static pyqt5ClassPluginDef plugin_KWidgetItemDelegate = {
    & ::KWidgetItemDelegate::staticMetaObject,
    0,
    0,
    0
};


sipClassTypeDef sipTypeDef_KItemViews_KWidgetItemDelegate = {
    {
        -1,
        0,
        0,
        SIP_TYPE_ABSTRACT|SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_KWidgetItemDelegate,
        {0},
        &plugin_KWidgetItemDelegate
    },
    {
        sipNameNr_KWidgetItemDelegate,
        {0, 0, 1},
        16, methods_KWidgetItemDelegate,
        0, 0,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KWidgetItemDelegate,
    0,
    init_type_KWidgetItemDelegate,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KWidgetItemDelegate,
    0,
    0,
    0,
    release_KWidgetItemDelegate,
    cast_KWidgetItemDelegate,
    0,
    0,
    0,
    0,
    0,
    0
};
