/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt6.
 * 
 * This file may be used under the terms of the GNU General Public License
 * version 3.0 as published by the Free Software Foundation and appearing in
 * the file LICENSE included in the packaging of this file.  Please review the
 * following information to ensure the GNU General Public License version 3.0
 * requirements will be met: http://www.gnu.org/copyleft/gpl.html.
 * 
 * If you do not wish to use this file under the terms of the GPL version 3.0
 * then you may purchase a commercial license.  For more information contact
 * info@riverbankcomputing.com.
 * 
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */

#include "sipAPIQtWidgets.h"

#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtWidgets/qitemdelegate.sip"
#include <qitemdelegate.h>
#line 29 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"

#line 28 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qobject.sip"
#include <qobject.h>
#line 33 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 36 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 105 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 39 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 581 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtWidgets/qstyleoption.sip"
#include <qstyleoption.h>
#line 42 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qabstractitemmodel.sip"
#include <qabstractitemmodel.h>
#line 45 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtGui/qpainter.sip"
#include <qpainter.h>
#line 48 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qrect.sip"
#include <qrect.h>
#line 51 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 24 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 54 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtGui/qpixmap.sip"
#include <qpixmap.h>
#line 57 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 150 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qtextstream.sip"
#include <qtextstream.h>
#line 62 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 38 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtWidgets/qitemeditorfactory.sip"
#include <qitemeditorfactory.h>
#line 65 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtWidgets/qwidget.sip"
#include <qwidget.h>
#line 68 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qsize.sip"
#include <qsize.h>
#line 71 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtWidgets/qabstractitemdelegate.sip"
#include <qabstractitemdelegate.h>
#line 74 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 483 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtGui/qevent.sip"
#include <qevent.h>
#line 77 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtWidgets/qabstractitemview.sip"
#include <qabstractitemview.h>
#line 80 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 151 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 85 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qmetaobject.sip"
#include <qmetaobject.h>
#line 88 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 245 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 91 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 232 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qcoreevent.sip"
#include <qcoreevent.h>
#line 94 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 97 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 28 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 100 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 30 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qbytearray.sip"
#include <qbytearray.h>
#line 103 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 135 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qpycore_qlist.sip"
#include <qlist.h>
#line 106 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qthread.sip"
#include <qthread.h>
#line 109 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 25 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qflags.sip"
#include <qglobal.h>
#line 112 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qregularexpression.sip"
#include <qregularexpression.h>
#line 115 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"
#line 26 "/build/pyqt6/src/PyQt6-6.3.1/sip/QtCore/qobjectdefs.sip"
#include <qobjectdefs.h>
#line 118 "/build/pyqt6/src/PyQt6-6.3.1/build/QtWidgets/sipQtWidgetsQItemDelegate.cpp"


class sipQItemDelegate : public  ::QItemDelegate
{
public:
    sipQItemDelegate( ::QObject*);
    virtual ~sipQItemDelegate();

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

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void drawFocus( ::QPainter*,const  ::QStyleOptionViewItem&,const  ::QRect&) const SIP_OVERRIDE;
    void drawDisplay( ::QPainter*,const  ::QStyleOptionViewItem&,const  ::QRect&,const  ::QString&) const SIP_OVERRIDE;
    void drawDecoration( ::QPainter*,const  ::QStyleOptionViewItem&,const  ::QRect&,const  ::QPixmap&) const SIP_OVERRIDE;
    void drawCheck( ::QPainter*,const  ::QStyleOptionViewItem&,const  ::QRect&, ::Qt::CheckState) const SIP_OVERRIDE;
    void disconnectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;
    void connectNotify(const  ::QMetaMethod&) SIP_OVERRIDE;
    void customEvent( ::QEvent*) SIP_OVERRIDE;
    void childEvent( ::QChildEvent*) SIP_OVERRIDE;
    void timerEvent( ::QTimerEvent*) SIP_OVERRIDE;
    bool eventFilter( ::QObject*, ::QEvent*) SIP_OVERRIDE;
    bool event( ::QEvent*) SIP_OVERRIDE;
    void paint( ::QPainter*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&) const SIP_OVERRIDE;
     ::QSize sizeHint(const  ::QStyleOptionViewItem&,const  ::QModelIndex&) const SIP_OVERRIDE;
     ::QWidget* createEditor( ::QWidget*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&) const SIP_OVERRIDE;
    void setEditorData( ::QWidget*,const  ::QModelIndex&) const SIP_OVERRIDE;
    void setModelData( ::QWidget*, ::QAbstractItemModel*,const  ::QModelIndex&) const SIP_OVERRIDE;
    void updateEditorGeometry( ::QWidget*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&) const SIP_OVERRIDE;
    void destroyEditor( ::QWidget*,const  ::QModelIndex&) const SIP_OVERRIDE;
    bool editorEvent( ::QEvent*, ::QAbstractItemModel*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&) SIP_OVERRIDE;
    bool helpEvent( ::QHelpEvent*, ::QAbstractItemView*,const  ::QStyleOptionViewItem&,const  ::QModelIndex&) SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[20];
};

sipQItemDelegate::sipQItemDelegate( ::QObject*a0):  ::QItemDelegate(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQItemDelegate::~sipQItemDelegate()
{
    sipInstanceDestroyedEx(&sipPySelf);
}

const QMetaObject *sipQItemDelegate::metaObject() const
{
    if (sipGetInterpreter())
        return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : sip_QtWidgets_qt_metaobject(sipPySelf,sipType_QItemDelegate);

    return  ::QItemDelegate::metaObject();
}

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

    if (_id >= 0)
    {
        SIP_BLOCK_THREADS
        _id = sip_QtWidgets_qt_metacall(sipPySelf,sipType_QItemDelegate,_c,_id,_a);
        SIP_UNBLOCK_THREADS
    }

    return _id;
}

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

    return (sip_QtWidgets_qt_metacast(sipPySelf, sipType_QItemDelegate, _clname, &sipCpp) ? sipCpp :  ::QItemDelegate::qt_metacast(_clname));
}

void sipQItemDelegate::drawFocus( ::QPainter*a0,const  ::QStyleOptionViewItem& a1,const  ::QRect& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[0]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_drawFocus);

    if (!sipMeth)
    {
         ::QItemDelegate::drawFocus(a0,a1,a2);
        return;
    }

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

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

void sipQItemDelegate::drawDisplay( ::QPainter*a0,const  ::QStyleOptionViewItem& a1,const  ::QRect& a2,const  ::QString& a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[1]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_drawDisplay);

    if (!sipMeth)
    {
         ::QItemDelegate::drawDisplay(a0,a1,a2,a3);
        return;
    }

    extern void sipVH_QtWidgets_165(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPainter*,const  ::QStyleOptionViewItem&,const  ::QRect&,const  ::QString&);

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

void sipQItemDelegate::drawDecoration( ::QPainter*a0,const  ::QStyleOptionViewItem& a1,const  ::QRect& a2,const  ::QPixmap& a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[2]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_drawDecoration);

    if (!sipMeth)
    {
         ::QItemDelegate::drawDecoration(a0,a1,a2,a3);
        return;
    }

    extern void sipVH_QtWidgets_164(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPainter*,const  ::QStyleOptionViewItem&,const  ::QRect&,const  ::QPixmap&);

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

void sipQItemDelegate::drawCheck( ::QPainter*a0,const  ::QStyleOptionViewItem& a1,const  ::QRect& a2, ::Qt::CheckState a3) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[3]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_drawCheck);

    if (!sipMeth)
    {
         ::QItemDelegate::drawCheck(a0,a1,a2,a3);
        return;
    }

    extern void sipVH_QtWidgets_163(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QPainter*,const  ::QStyleOptionViewItem&,const  ::QRect&, ::Qt::CheckState);

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

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[4], &sipPySelf, SIP_NULLPTR, sipName_disconnectNotify);

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

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

    sipVH_QtWidgets_0(sipGILState, sipImportedVirtErrorHandlers_QtWidgets_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[5], &sipPySelf, SIP_NULLPTR, sipName_connectNotify);

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

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

    sipVH_QtWidgets_0(sipGILState, sipImportedVirtErrorHandlers_QtWidgets_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[6], &sipPySelf, SIP_NULLPTR, sipName_customEvent);

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

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

    sipVH_QtWidgets_1(sipGILState, sipImportedVirtErrorHandlers_QtWidgets_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[7], &sipPySelf, SIP_NULLPTR, sipName_childEvent);

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

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

    sipVH_QtWidgets_2(sipGILState, sipImportedVirtErrorHandlers_QtWidgets_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[8], &sipPySelf, SIP_NULLPTR, sipName_timerEvent);

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

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

    sipVH_QtWidgets_3(sipGILState, sipImportedVirtErrorHandlers_QtWidgets_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[9], &sipPySelf, SIP_NULLPTR, sipName_eventFilter);

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

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

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

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

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

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

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

    return sipVH_QtWidgets_5(sipGILState, sipImportedVirtErrorHandlers_QtWidgets_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0);
}

void sipQItemDelegate::paint( ::QPainter*a0,const  ::QStyleOptionViewItem& a1,const  ::QModelIndex& a2) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[11]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_paint);

    if (!sipMeth)
    {
         ::QItemDelegate::paint(a0,a1,a2);
        return;
    }

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[12]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_sizeHint);

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[13]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_createEditor);

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[14]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_setEditorData);

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

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

    sipVH_QtWidgets_42(sipGILState, sipImportedVirtErrorHandlers_QtWidgets_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[15]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_setModelData);

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[16]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_updateEditorGeometry);

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState, const_cast<char *>(&sipPyMethods[17]), const_cast<sipSimpleWrapper **>(&sipPySelf), SIP_NULLPTR, sipName_destroyEditor);

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

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

    sipVH_QtWidgets_42(sipGILState, sipImportedVirtErrorHandlers_QtWidgets_QtCore[0].iveh_handler, sipPySelf, sipMeth, a0, a1);
}

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[18], &sipPySelf, SIP_NULLPTR, sipName_editorEvent);

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

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

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

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

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[19], &sipPySelf, SIP_NULLPTR, sipName_helpEvent);

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

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

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


PyDoc_STRVAR(doc_QItemDelegate_paint, "paint(self, QPainter, QStyleOptionViewItem, QModelIndex)");

extern "C" {static PyObject *meth_QItemDelegate_paint(PyObject *, PyObject *);}
static PyObject *meth_QItemDelegate_paint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QItemDelegate)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_paint, doc_QItemDelegate_paint);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_sizeHint, "sizeHint(self, QStyleOptionViewItem, QModelIndex) -> QSize");

extern "C" {static PyObject *meth_QItemDelegate_sizeHint(PyObject *, PyObject *);}
static PyObject *meth_QItemDelegate_sizeHint(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QItemDelegate)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

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

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

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

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_sizeHint, doc_QItemDelegate_sizeHint);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_createEditor, "createEditor(self, QWidget, QStyleOptionViewItem, QModelIndex) -> QWidget");

extern "C" {static PyObject *meth_QItemDelegate_createEditor(PyObject *, PyObject *);}
static PyObject *meth_QItemDelegate_createEditor(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QItemDelegate)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QWidget* a0;
        const  ::QStyleOptionViewItem* a1;
        const  ::QModelIndex* a2;
        sipWrapper *sipOwner = SIP_NULLPTR;
        const  ::QItemDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJHJ9J9", &sipSelf, sipType_QItemDelegate, &sipCpp, sipType_QWidget, &a0, &sipOwner, sipType_QStyleOptionViewItem, &a1, sipType_QModelIndex, &a2))
        {
             ::QWidget*sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QItemDelegate::createEditor(a0,*a1,*a2) : sipCpp->createEditor(a0,*a1,*a2));

            return sipConvertFromNewType(sipRes,sipType_QWidget,(PyObject *)sipOwner);
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_createEditor, doc_QItemDelegate_createEditor);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_setEditorData, "setEditorData(self, QWidget, QModelIndex)");

extern "C" {static PyObject *meth_QItemDelegate_setEditorData(PyObject *, PyObject *);}
static PyObject *meth_QItemDelegate_setEditorData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QItemDelegate)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8J9", &sipSelf, sipType_QItemDelegate, &sipCpp, sipType_QWidget, &a0, sipType_QModelIndex, &a1))
        {
            (sipSelfWasArg ? sipCpp-> ::QItemDelegate::setEditorData(a0,*a1) : sipCpp->setEditorData(a0,*a1));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_setEditorData, doc_QItemDelegate_setEditorData);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_setModelData, "setModelData(self, QWidget, QAbstractItemModel, QModelIndex)");

extern "C" {static PyObject *meth_QItemDelegate_setModelData(PyObject *, PyObject *);}
static PyObject *meth_QItemDelegate_setModelData(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QItemDelegate)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QWidget* a0;
         ::QAbstractItemModel* a1;
        PyObject *a1Keep;
        const  ::QModelIndex* a2;
        const  ::QItemDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ8@J8J9", &sipSelf, sipType_QItemDelegate, &sipCpp, sipType_QWidget, &a0, &a1Keep, sipType_QAbstractItemModel, &a1, sipType_QModelIndex, &a2))
        {
            (sipSelfWasArg ? sipCpp-> ::QItemDelegate::setModelData(a0,a1,*a2) : sipCpp->setModelData(a0,a1,*a2));

            sipKeepReference(sipSelf, -26, a1Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_setModelData, doc_QItemDelegate_setModelData);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_updateEditorGeometry, "updateEditorGeometry(self, QWidget, QStyleOptionViewItem, QModelIndex)");

extern "C" {static PyObject *meth_QItemDelegate_updateEditorGeometry(PyObject *, PyObject *);}
static PyObject *meth_QItemDelegate_updateEditorGeometry(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QItemDelegate)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_updateEditorGeometry, doc_QItemDelegate_updateEditorGeometry);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_itemEditorFactory, "itemEditorFactory(self) -> QItemEditorFactory");

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

    {
        const  ::QItemDelegate *sipCpp;

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

            sipRes = sipCpp->itemEditorFactory();

            return sipConvertFromType(sipRes,sipType_QItemEditorFactory,SIP_NULLPTR);
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_itemEditorFactory, doc_QItemDelegate_itemEditorFactory);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_setItemEditorFactory, "setItemEditorFactory(self, QItemEditorFactory)");

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

    {
         ::QItemEditorFactory* a0;
        PyObject *a0Keep;
         ::QItemDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B@J8", &sipSelf, sipType_QItemDelegate, &sipCpp, &a0Keep, sipType_QItemEditorFactory, &a0))
        {
            sipCpp->setItemEditorFactory(a0);

            sipKeepReference(sipSelf, -27, a0Keep);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_setItemEditorFactory, doc_QItemDelegate_setItemEditorFactory);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_hasClipping, "hasClipping(self) -> bool");

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

    {
        const  ::QItemDelegate *sipCpp;

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

            sipRes = sipCpp->hasClipping();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_hasClipping, doc_QItemDelegate_hasClipping);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_setClipping, "setClipping(self, bool)");

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

    {
        bool a0;
         ::QItemDelegate *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_setClipping, doc_QItemDelegate_setClipping);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_drawBackground, "drawBackground(self, QPainter, QStyleOptionViewItem, QModelIndex)");

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

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8J9J9", &sipSelf, sipType_QItemDelegate, &sipCpp, sipType_QPainter, &a0, sipType_QStyleOptionViewItem, &a1, sipType_QModelIndex, &a2))
        {
            sipCpp->drawBackground(a0,*a1,*a2);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_drawBackground, doc_QItemDelegate_drawBackground);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_drawCheck, "drawCheck(self, QPainter, QStyleOptionViewItem, QRect, Qt.CheckState)");

extern "C" {static PyObject *meth_QItemDelegate_drawCheck(PyObject *, PyObject *);}
static PyObject *meth_QItemDelegate_drawCheck(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QItemDelegate)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QPainter* a0;
        const  ::QStyleOptionViewItem* a1;
        const  ::QRect* a2;
         ::Qt::CheckState a3;
        const  ::QItemDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8J9J9E", &sipSelf, sipType_QItemDelegate, &sipCpp, sipType_QPainter, &a0, sipType_QStyleOptionViewItem, &a1, sipType_QRect, &a2, sipType_Qt_CheckState, &a3))
        {
            (sipSelfWasArg ? sipCpp-> ::QItemDelegate::drawCheck(a0,*a1,*a2,a3) : sipCpp->drawCheck(a0,*a1,*a2,a3));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_drawCheck, doc_QItemDelegate_drawCheck);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_drawDecoration, "drawDecoration(self, QPainter, QStyleOptionViewItem, QRect, QPixmap)");

extern "C" {static PyObject *meth_QItemDelegate_drawDecoration(PyObject *, PyObject *);}
static PyObject *meth_QItemDelegate_drawDecoration(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QItemDelegate)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QPainter* a0;
        const  ::QStyleOptionViewItem* a1;
        const  ::QRect* a2;
        const  ::QPixmap* a3;
        const  ::QItemDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8J9J9J9", &sipSelf, sipType_QItemDelegate, &sipCpp, sipType_QPainter, &a0, sipType_QStyleOptionViewItem, &a1, sipType_QRect, &a2, sipType_QPixmap, &a3))
        {
            (sipSelfWasArg ? sipCpp-> ::QItemDelegate::drawDecoration(a0,*a1,*a2,*a3) : sipCpp->drawDecoration(a0,*a1,*a2,*a3));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_drawDecoration, doc_QItemDelegate_drawDecoration);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_drawDisplay, "drawDisplay(self, QPainter, QStyleOptionViewItem, QRect, str)");

extern "C" {static PyObject *meth_QItemDelegate_drawDisplay(PyObject *, PyObject *);}
static PyObject *meth_QItemDelegate_drawDisplay(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QItemDelegate)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QPainter* a0;
        const  ::QStyleOptionViewItem* a1;
        const  ::QRect* a2;
        const  ::QString* a3;
        int a3State = 0;
        const  ::QItemDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8J9J9J1", &sipSelf, sipType_QItemDelegate, &sipCpp, sipType_QPainter, &a0, sipType_QStyleOptionViewItem, &a1, sipType_QRect, &a2, sipType_QString, &a3, &a3State))
        {
            (sipSelfWasArg ? sipCpp-> ::QItemDelegate::drawDisplay(a0,*a1,*a2,*a3) : sipCpp->drawDisplay(a0,*a1,*a2,*a3));
            sipReleaseType(const_cast< ::QString *>(a3), sipType_QString, a3State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_drawDisplay, doc_QItemDelegate_drawDisplay);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_drawFocus, "drawFocus(self, QPainter, QStyleOptionViewItem, QRect)");

extern "C" {static PyObject *meth_QItemDelegate_drawFocus(PyObject *, PyObject *);}
static PyObject *meth_QItemDelegate_drawFocus(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QItemDelegate)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

    {
         ::QPainter* a0;
        const  ::QStyleOptionViewItem* a1;
        const  ::QRect* a2;
        const  ::QItemDelegate *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8J9J9", &sipSelf, sipType_QItemDelegate, &sipCpp, sipType_QPainter, &a0, sipType_QStyleOptionViewItem, &a1, sipType_QRect, &a2))
        {
            (sipSelfWasArg ? sipCpp-> ::QItemDelegate::drawFocus(a0,*a1,*a2) : sipCpp->drawFocus(a0,*a1,*a2));

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_drawFocus, doc_QItemDelegate_drawFocus);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_eventFilter, "eventFilter(self, QObject, QEvent) -> bool");

extern "C" {static PyObject *meth_QItemDelegate_eventFilter(PyObject *, PyObject *);}
static PyObject *meth_QItemDelegate_eventFilter(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QItemDelegate)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8J8", &sipSelf, sipType_QItemDelegate, &sipCpp, sipType_QObject, &a0, sipType_QEvent, &a1))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QItemDelegate::eventFilter(a0,a1) : sipCpp->eventFilter(a0,a1));

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_eventFilter, doc_QItemDelegate_eventFilter);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QItemDelegate_editorEvent, "editorEvent(self, QEvent, QAbstractItemModel, QStyleOptionViewItem, QModelIndex) -> bool");

extern "C" {static PyObject *meth_QItemDelegate_editorEvent(PyObject *, PyObject *);}
static PyObject *meth_QItemDelegate_editorEvent(PyObject *sipSelf, PyObject *sipArgs)
{
    PyObject *sipParseErr = SIP_NULLPTR;
    bool sipSelfWasArg = (!PyObject_TypeCheck(sipSelf, sipTypeAsPyTypeObject(sipType_QItemDelegate)) || sipIsDerivedClass((sipSimpleWrapper *)sipSelf));

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

        if (sipParseArgs(&sipParseErr, sipArgs, "pJ8J8J9J9", &sipSelf, sipType_QItemDelegate, &sipCpp, sipType_QEvent, &a0, sipType_QAbstractItemModel, &a1, sipType_QStyleOptionViewItem, &a2, sipType_QModelIndex, &a3))
        {
            bool sipRes;

            sipRes = (sipSelfWasArg ? sipCpp-> ::QItemDelegate::editorEvent(a0,a1,*a2,*a3) : sipCpp->editorEvent(a0,a1,*a2,*a3));

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QItemDelegate, sipName_editorEvent, doc_QItemDelegate_editorEvent);

    return SIP_NULLPTR;
}


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

    if (targetType == sipType_QItemDelegate)
        return sipCppV;

    sipCppV = ((const sipClassTypeDef *)sipType_QAbstractItemDelegate)->ctd_cast(static_cast< ::QAbstractItemDelegate *>(sipCpp), targetType);
    if (sipCppV)
        return sipCppV;

    return SIP_NULLPTR;
}


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

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


extern "C" {static void *array_QItemDelegate(Py_ssize_t);}
static void *array_QItemDelegate(Py_ssize_t sipNrElem)
{
    return new  ::QItemDelegate[sipNrElem];
}


extern "C" {static void array_delete_QItemDelegate(void *);}
static void array_delete_QItemDelegate(void *sipCpp)
{
    delete[] reinterpret_cast< ::QItemDelegate *>(sipCpp);
}


extern "C" {static void dealloc_QItemDelegate(sipSimpleWrapper *);}
static void dealloc_QItemDelegate(sipSimpleWrapper *sipSelf)
{
    if (sipIsDerivedClass(sipSelf))
        reinterpret_cast<sipQItemDelegate *>(sipGetAddress(sipSelf))->sipPySelf = SIP_NULLPTR;

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


extern "C" {static void *init_type_QItemDelegate(sipSimpleWrapper *, PyObject *, PyObject *, PyObject **, PyObject **, PyObject **);}
static void *init_type_QItemDelegate(sipSimpleWrapper *sipSelf, PyObject *sipArgs, PyObject *sipKwds, PyObject **sipUnused, PyObject **sipOwner, PyObject **sipParseErr)
{
    sipQItemDelegate *sipCpp = SIP_NULLPTR;

    {
         ::QObject* a0 = 0;

        static const char *sipKwdList[] = {
            sipName_parent,
        };

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

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


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


static PyMethodDef methods_QItemDelegate[] = {
    {sipName_createEditor, meth_QItemDelegate_createEditor, METH_VARARGS, doc_QItemDelegate_createEditor},
    {sipName_drawBackground, meth_QItemDelegate_drawBackground, METH_VARARGS, doc_QItemDelegate_drawBackground},
    {sipName_drawCheck, meth_QItemDelegate_drawCheck, METH_VARARGS, doc_QItemDelegate_drawCheck},
    {sipName_drawDecoration, meth_QItemDelegate_drawDecoration, METH_VARARGS, doc_QItemDelegate_drawDecoration},
    {sipName_drawDisplay, meth_QItemDelegate_drawDisplay, METH_VARARGS, doc_QItemDelegate_drawDisplay},
    {sipName_drawFocus, meth_QItemDelegate_drawFocus, METH_VARARGS, doc_QItemDelegate_drawFocus},
    {sipName_editorEvent, meth_QItemDelegate_editorEvent, METH_VARARGS, doc_QItemDelegate_editorEvent},
    {sipName_eventFilter, meth_QItemDelegate_eventFilter, METH_VARARGS, doc_QItemDelegate_eventFilter},
    {sipName_hasClipping, meth_QItemDelegate_hasClipping, METH_VARARGS, doc_QItemDelegate_hasClipping},
    {sipName_itemEditorFactory, meth_QItemDelegate_itemEditorFactory, METH_VARARGS, doc_QItemDelegate_itemEditorFactory},
    {sipName_paint, meth_QItemDelegate_paint, METH_VARARGS, doc_QItemDelegate_paint},
    {sipName_setClipping, meth_QItemDelegate_setClipping, METH_VARARGS, doc_QItemDelegate_setClipping},
    {sipName_setEditorData, meth_QItemDelegate_setEditorData, METH_VARARGS, doc_QItemDelegate_setEditorData},
    {sipName_setItemEditorFactory, meth_QItemDelegate_setItemEditorFactory, METH_VARARGS, doc_QItemDelegate_setItemEditorFactory},
    {sipName_setModelData, meth_QItemDelegate_setModelData, METH_VARARGS, doc_QItemDelegate_setModelData},
    {sipName_sizeHint, meth_QItemDelegate_sizeHint, METH_VARARGS, doc_QItemDelegate_sizeHint},
    {sipName_updateEditorGeometry, meth_QItemDelegate_updateEditorGeometry, METH_VARARGS, doc_QItemDelegate_updateEditorGeometry}
};

PyDoc_STRVAR(doc_QItemDelegate, "\1QItemDelegate(parent: QObject = None)");


static pyqt6ClassPluginDef plugin_QItemDelegate = {
    & ::QItemDelegate::staticMetaObject,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtWidgets_QItemDelegate = {
    {
        SIP_NULLPTR,
        SIP_TYPE_SCC|SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QItemDelegate,
        SIP_NULLPTR,
        &plugin_QItemDelegate
    },
    {
        sipNameNr_QItemDelegate,
        {0, 0, 1},
        17, methods_QItemDelegate,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QItemDelegate,
    -1,
    -1,
    supers_QItemDelegate,
    SIP_NULLPTR,
    init_type_QItemDelegate,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QItemDelegate,
    SIP_NULLPTR,
    array_QItemDelegate,
    SIP_NULLPTR,
    release_QItemDelegate,
    cast_QItemDelegate,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    array_delete_QItemDelegate,
    sizeof ( ::QItemDelegate),
};
