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

#include "sipAPIKItemViews.h"

#include <kextendableitemdelegate.h>

#include <qabstractitemview.h>
#include <qpixmap.h>
#include <qrect.h>
#include <qwidget.h>
#include <qstyleoption.h>
#include <qabstractitemmodel.h>
#include <qpainter.h>
#include <qsize.h>
#include <qcoreevent.h>
#include <qabstractitemmodel.h>
#include <qobject.h>
#include <qstring.h>
#include <qvariant.h>
#include <qlocale.h>
#include <qitemeditorfactory.h>
#include <qabstractitemdelegate.h>
#include <qevent.h>
#include <qmetaobject.h>
#include <qcoreevent.h>
#include <qcoreevent.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 sipKExtendableItemDelegate : public  ::KExtendableItemDelegate
{
public:
    sipKExtendableItemDelegate( ::QAbstractItemView*);
    virtual ~sipKExtendableItemDelegate();

    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_initStyleOption(bool, ::QStyleOptionViewItem*,const  ::QModelIndex&) const;
    bool sipProtectVirt_eventFilter(bool, ::QObject*, ::QEvent*);
    bool sipProtectVirt_editorEvent(bool, ::QEvent*, ::QAbstractItemModel*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&);
     ::QRect sipProtect_extenderRect( ::QWidget*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&) const;
    void sipProtect_setExtendPixmap(const  ::QPixmap&);
    void sipProtect_setContractPixmap(const  ::QPixmap&);
     ::QPixmap sipProtect_extendPixmap();
     ::QPixmap sipProtect_contractPixmap();

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

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[19];
};

sipKExtendableItemDelegate::sipKExtendableItemDelegate( ::QAbstractItemView*a0):  ::KExtendableItemDelegate(a0), sipPySelf(0)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

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

    return  ::KExtendableItemDelegate::metaObject();
}

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

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

    return _id;
}

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

    return (sip_KItemViews_qt_metacast(sipPySelf, sipType_KExtendableItemDelegate, _clname, &sipCpp) ? sipCpp :  ::KExtendableItemDelegate::qt_metacast(_clname));
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if (!sipMeth)
    {
         ::KExtendableItemDelegate::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 sipKExtendableItemDelegate::setModelData( ::QWidget*a0, ::QAbstractItemModel*a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KExtendableItemDelegate::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 sipKExtendableItemDelegate::setEditorData( ::QWidget*a0,const  ::QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

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

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

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

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

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

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

    if (!sipMeth)
        return  ::KExtendableItemDelegate::sizeHint(a0,a1);

    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);
}

void sipKExtendableItemDelegate::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,NULL,sipName_paint);

    if (!sipMeth)
    {
         ::KExtendableItemDelegate::paint(a0,a1,a2);
        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);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 ::QString sipKExtendableItemDelegate::displayText(const  ::QVariant& a0,const  ::QLocale& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::KExtendableItemDelegate::displayText(a0,a1);

    extern  ::QString sipVH_KItemViews_91(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QVariant&,const  ::QLocale&);

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

void sipKExtendableItemDelegate::initStyleOption( ::QStyleOptionViewItem*a0,const  ::QModelIndex& a1) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::KExtendableItemDelegate::initStyleOption(a0,a1);
        return;
    }

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

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

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

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

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

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

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

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

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

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

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

void sipKExtendableItemDelegate::sipProtectVirt_initStyleOption(bool sipSelfWasArg, ::QStyleOptionViewItem*a0,const  ::QModelIndex& a1) const
{
    (sipSelfWasArg ?  ::QStyledItemDelegate::initStyleOption(a0,a1) : initStyleOption(a0,a1));
}

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

bool sipKExtendableItemDelegate::sipProtectVirt_editorEvent(bool sipSelfWasArg, ::QEvent*a0, ::QAbstractItemModel*a1,const  ::QStyleOptionViewItem& a2,const  ::QModelIndex& a3)
{
    return (sipSelfWasArg ?  ::QStyledItemDelegate::editorEvent(a0,a1,a2,a3) : editorEvent(a0,a1,a2,a3));
}

 ::QRect sipKExtendableItemDelegate::sipProtect_extenderRect( ::QWidget*a0,const  ::QStyleOptionViewItem& a1,const  ::QModelIndex& a2) const
{
    return  ::KExtendableItemDelegate::extenderRect(a0,a1,a2);
}

void sipKExtendableItemDelegate::sipProtect_setExtendPixmap(const  ::QPixmap& a0)
{
     ::KExtendableItemDelegate::setExtendPixmap(a0);
}

void sipKExtendableItemDelegate::sipProtect_setContractPixmap(const  ::QPixmap& a0)
{
     ::KExtendableItemDelegate::setContractPixmap(a0);
}

 ::QPixmap sipKExtendableItemDelegate::sipProtect_extendPixmap()
{
    return  ::KExtendableItemDelegate::extendPixmap();
}

 ::QPixmap sipKExtendableItemDelegate::sipProtect_contractPixmap()
{
    return  ::KExtendableItemDelegate::contractPixmap();
}


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

    {
        const sipKExtendableItemDelegate *sipCpp;

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

    return NULL;
}


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

    {
        PyObject * a0;
        const sipKExtendableItemDelegate *sipCpp;

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

    return NULL;
}


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

    {
         ::QTimerEvent* a0;
        sipKExtendableItemDelegate *sipCpp;

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

    return NULL;
}


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

    {
         ::QChildEvent* a0;
        sipKExtendableItemDelegate *sipCpp;

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

    return NULL;
}


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

    {
         ::QEvent* a0;
        sipKExtendableItemDelegate *sipCpp;

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

    return NULL;
}


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

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

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
        const sipKExtendableItemDelegate *sipCpp;

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

            sipRes = sipCpp->sipProtect_senderSignalIndex();

            return SIPLong_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

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

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

    return NULL;
}


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

    {
         ::QStyleOptionViewItem* a0;
        const  ::QModelIndex* a1;
        const sipKExtendableItemDelegate *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8J9", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp, sipType_QStyleOptionViewItem, &a0, sipType_QModelIndex, &a1))
        {
            sipCpp->sipProtectVirt_initStyleOption(sipSelfWasArg,a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

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

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

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
         ::QEvent* a0;
         ::QAbstractItemModel* a1;
        const  ::QStyleOptionViewItem* a2;
        const  ::QModelIndex* a3;
        sipKExtendableItemDelegate *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8J8J9J9", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp, sipType_QEvent, &a0, sipType_QAbstractItemModel, &a1, sipType_QStyleOptionViewItem, &a2, sipType_QModelIndex, &a3))
        {
            bool sipRes;

            sipRes = sipCpp->sipProtectVirt_editorEvent(sipSelfWasArg,a0,a1,*a2,*a3);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
        const  ::QStyleOptionViewItem* a0;
        const  ::QModelIndex* a1;
        const  ::KExtendableItemDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9J9", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp, sipType_QStyleOptionViewItem, &a0, sipType_QModelIndex, &a1))
        {
             ::QSize*sipRes;

            sipRes = new  ::QSize((sipSelfWasArg ? sipCpp-> ::KExtendableItemDelegate::sizeHint(*a0,*a1) : sipCpp->sizeHint(*a0,*a1)));

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

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

    return NULL;
}


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

    {
         ::QPainter* a0;
        const  ::QStyleOptionViewItem* a1;
        const  ::QModelIndex* a2;
        const  ::KExtendableItemDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9J9", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp, sipType_QPainter, &a0, sipType_QStyleOptionViewItem, &a1, sipType_QModelIndex, &a2))
        {
            (sipSelfWasArg ? sipCpp-> ::KExtendableItemDelegate::paint(a0,*a1,*a2) : sipCpp->paint(a0,*a1,*a2));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::QWidget* a0;
        const  ::QModelIndex* a1;
         ::KExtendableItemDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp, sipType_QWidget, &a0, sipType_QModelIndex, &a1))
        {
            sipCpp->extendItem(a0,*a1);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp, sipType_QModelIndex, &a0))
        {
            sipCpp->contractItem(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::KExtendableItemDelegate *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp, sipType_QModelIndex, &a0))
        {
            bool sipRes;

            sipRes = sipCpp->isExtended(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

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

    return NULL;
}


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

    {
         ::QWidget* a0;
        const  ::QStyleOptionViewItem* a1;
        const  ::QModelIndex* a2;
        const  ::KExtendableItemDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9J9", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp, sipType_QWidget, &a0, sipType_QStyleOptionViewItem, &a1, sipType_QModelIndex, &a2))
        {
            (sipSelfWasArg ? sipCpp-> ::KExtendableItemDelegate::updateExtenderGeometry(a0,*a1,*a2) : sipCpp->updateExtenderGeometry(a0,*a1,*a2));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
         ::QWidget* a0;
        const  ::QStyleOptionViewItem* a1;
        const  ::QModelIndex* a2;
        const sipKExtendableItemDelegate *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ8J9J9", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp, sipType_QWidget, &a0, sipType_QStyleOptionViewItem, &a1, sipType_QModelIndex, &a2))
        {
             ::QRect*sipRes;

            sipRes = new  ::QRect(sipCpp->sipProtect_extenderRect(a0,*a1,*a2));

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

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

    return NULL;
}


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

    {
        const  ::QPixmap* a0;
        sipKExtendableItemDelegate *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp, sipType_QPixmap, &a0))
        {
            sipCpp->sipProtect_setExtendPixmap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        const  ::QPixmap* a0;
        sipKExtendableItemDelegate *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "BJ9", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp, sipType_QPixmap, &a0))
        {
            sipCpp->sipProtect_setContractPixmap(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

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

    return NULL;
}


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

    {
        sipKExtendableItemDelegate *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp))
        {
             ::QPixmap*sipRes;

            sipRes = new  ::QPixmap(sipCpp->sipProtect_extendPixmap());

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

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

    return NULL;
}


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

    {
        sipKExtendableItemDelegate *sipCpp;

        if (sipParseKwdArgs(&sipParseErr, sipArgs, sipKwds, NULL, NULL, "B", &sipSelf, sipType_KExtendableItemDelegate, &sipCpp))
        {
             ::QPixmap*sipRes;

            sipRes = new  ::QPixmap(sipCpp->sipProtect_contractPixmap());

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

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

    return NULL;
}


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

    if (targetType == sipType_QStyledItemDelegate)
        return static_cast< ::QStyledItemDelegate *>(sipCpp);

    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_KExtendableItemDelegate(void *, int);}
static void release_KExtendableItemDelegate(void *sipCppV, int)
{
     ::KExtendableItemDelegate *sipCpp = reinterpret_cast< ::KExtendableItemDelegate *>(sipCppV);

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


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

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


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

    {
         ::QAbstractItemView* a0;

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return NULL;
}


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


static PyMethodDef methods_KExtendableItemDelegate[] = {
    {SIP_MLNAME_CAST(sipName_childEvent), (PyCFunction)meth_KExtendableItemDelegate_childEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_connectNotify), (PyCFunction)meth_KExtendableItemDelegate_connectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_contractAll), meth_KExtendableItemDelegate_contractAll, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contractItem), meth_KExtendableItemDelegate_contractItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_contractPixmap), (PyCFunction)meth_KExtendableItemDelegate_contractPixmap, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_customEvent), (PyCFunction)meth_KExtendableItemDelegate_customEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_disconnectNotify), (PyCFunction)meth_KExtendableItemDelegate_disconnectNotify, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_editorEvent), (PyCFunction)meth_KExtendableItemDelegate_editorEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_eventFilter), (PyCFunction)meth_KExtendableItemDelegate_eventFilter, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_extendItem), meth_KExtendableItemDelegate_extendItem, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_extendPixmap), (PyCFunction)meth_KExtendableItemDelegate_extendPixmap, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_extenderRect), (PyCFunction)meth_KExtendableItemDelegate_extenderRect, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_initStyleOption), (PyCFunction)meth_KExtendableItemDelegate_initStyleOption, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_isExtended), meth_KExtendableItemDelegate_isExtended, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_isSignalConnected), (PyCFunction)meth_KExtendableItemDelegate_isSignalConnected, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_paint), meth_KExtendableItemDelegate_paint, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_receivers), (PyCFunction)meth_KExtendableItemDelegate_receivers, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sender), (PyCFunction)meth_KExtendableItemDelegate_sender, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_senderSignalIndex), (PyCFunction)meth_KExtendableItemDelegate_senderSignalIndex, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setContractPixmap), (PyCFunction)meth_KExtendableItemDelegate_setContractPixmap, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_setExtendPixmap), (PyCFunction)meth_KExtendableItemDelegate_setExtendPixmap, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_sizeHint), meth_KExtendableItemDelegate_sizeHint, METH_VARARGS, NULL},
    {SIP_MLNAME_CAST(sipName_timerEvent), (PyCFunction)meth_KExtendableItemDelegate_timerEvent, METH_VARARGS|METH_KEYWORDS, NULL},
    {SIP_MLNAME_CAST(sipName_updateExtenderGeometry), meth_KExtendableItemDelegate_updateExtenderGeometry, METH_VARARGS, NULL}
};

static sipEnumMemberDef enummembers_KExtendableItemDelegate[] = {
    {sipName_ShowExtensionIndicatorRole, static_cast<int>( ::KExtendableItemDelegate::ShowExtensionIndicatorRole), 6},
};


/* Define this type's signals. */
static const pyqt5QtSignal signals_KExtendableItemDelegate[] = {
    {"extenderDestroyed(QWidget*,QModelIndex)", 0, 0, 0},
    {"extenderCreated(QWidget*,QModelIndex)", 0, 0, 0},
    {0, 0, 0, 0}
};


static pyqt5ClassPluginDef plugin_KExtendableItemDelegate = {
    & ::KExtendableItemDelegate::staticMetaObject,
    0,
    signals_KExtendableItemDelegate,
    0
};


sipClassTypeDef sipTypeDef_KItemViews_KExtendableItemDelegate = {
    {
        -1,
        0,
        0,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_CLASS,
        sipNameNr_KExtendableItemDelegate,
        {0},
        &plugin_KExtendableItemDelegate
    },
    {
        sipNameNr_KExtendableItemDelegate,
        {0, 0, 1},
        24, methods_KExtendableItemDelegate,
        1, enummembers_KExtendableItemDelegate,
        0, 0,
        {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
    },
    0,
    -1,
    -1,
    supers_KExtendableItemDelegate,
    0,
    init_type_KExtendableItemDelegate,
    0,
    0,
#if PY_MAJOR_VERSION >= 3
    0,
    0,
#else
    0,
    0,
    0,
    0,
#endif
    dealloc_KExtendableItemDelegate,
    0,
    0,
    0,
    release_KExtendableItemDelegate,
    cast_KExtendableItemDelegate,
    0,
    0,
    0,
    0,
    0,
    0
};
