/*
 * Interface wrapper code.
 *
 * Generated by SIP 6.6.2
 *
 * Copyright (c) 2022 Riverbank Computing Limited <info@riverbankcomputing.com>
 * 
 * This file is part of PyQt5.
 * 
 * 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/pyqt5/src/PyQt5-5.15.7/sip/QtWidgets/qlistwidget.sip"
#include <qlistwidget.h>
#line 29 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQListWidgetItem.cpp"

#line 88 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtWidgets/qlistwidget.sip"
#include <qlistwidget.h>
#line 33 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQListWidgetItem.cpp"
#line 27 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qstring.sip"
#include <qstring.h>
#line 36 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQListWidgetItem.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qicon.sip"
#include <qicon.h>
#line 39 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQListWidgetItem.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qbrush.sip"
#include <qbrush.h>
#line 42 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQListWidgetItem.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtGui/qfont.sip"
#include <qfont.h>
#line 45 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQListWidgetItem.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 48 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQListWidgetItem.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qdatastream.sip"
#include <qdatastream.h>
#line 51 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQListWidgetItem.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qvariant.sip"
#include <qvariant.h>
#line 54 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQListWidgetItem.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qsize.sip"
#include <qsize.h>
#line 57 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQListWidgetItem.cpp"
#line 26 "/build/pyqt5/src/PyQt5-5.15.7/sip/QtCore/qnamespace.sip"
#include <qnamespace.h>
#line 60 "/build/pyqt5/src/PyQt5-5.15.7/build/QtWidgets/sipQtWidgetsQListWidgetItem.cpp"


class sipQListWidgetItem : public  ::QListWidgetItem
{
public:
    sipQListWidgetItem( ::QListWidget*,int);
    sipQListWidgetItem(const  ::QString&, ::QListWidget*,int);
    sipQListWidgetItem(const  ::QIcon&,const  ::QString&, ::QListWidget*,int);
    sipQListWidgetItem(const  ::QListWidgetItem&);
    virtual ~sipQListWidgetItem();

    /*
     * There is a protected method for every virtual method visible from
     * this class.
     */
protected:
    void write( ::QDataStream&) const SIP_OVERRIDE;
    void read( ::QDataStream&) SIP_OVERRIDE;
    bool operator<(const  ::QListWidgetItem&) const SIP_OVERRIDE;
    void setData(int,const  ::QVariant&) SIP_OVERRIDE;
     ::QVariant data(int) const SIP_OVERRIDE;
     ::QListWidgetItem* clone() const SIP_OVERRIDE;

public:
    sipSimpleWrapper *sipPySelf;

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

    char sipPyMethods[6];
};

sipQListWidgetItem::sipQListWidgetItem( ::QListWidget*a0,int a1):  ::QListWidgetItem(a0,a1), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQListWidgetItem::sipQListWidgetItem(const  ::QString& a0, ::QListWidget*a1,int a2):  ::QListWidgetItem(a0,a1,a2), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQListWidgetItem::sipQListWidgetItem(const  ::QIcon& a0,const  ::QString& a1, ::QListWidget*a2,int a3):  ::QListWidgetItem(a0,a1,a2,a3), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

sipQListWidgetItem::sipQListWidgetItem(const  ::QListWidgetItem& a0):  ::QListWidgetItem(a0), sipPySelf(SIP_NULLPTR)
{
    memset(sipPyMethods, 0, sizeof (sipPyMethods));
}

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

void sipQListWidgetItem::write( ::QDataStream& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
    {
         ::QListWidgetItem::write(a0);
        return;
    }

    extern void sipVH_QtWidgets_179(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDataStream&);

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

void sipQListWidgetItem::read( ::QDataStream& a0)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[1], &sipPySelf, SIP_NULLPTR, sipName_read);

    if (!sipMeth)
    {
         ::QListWidgetItem::read(a0);
        return;
    }

    extern void sipVH_QtWidgets_179(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *,  ::QDataStream&);

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

bool sipQListWidgetItem::operator<(const  ::QListWidgetItem& a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QListWidgetItem::operator<(a0);

    extern bool sipVH_QtWidgets_178(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, const  ::QListWidgetItem&);

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

void sipQListWidgetItem::setData(int a0,const  ::QVariant& a1)
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

    sipMeth = sipIsPyMethod(&sipGILState, &sipPyMethods[3], &sipPySelf, SIP_NULLPTR, sipName_setData);

    if (!sipMeth)
    {
         ::QListWidgetItem::setData(a0,a1);
        return;
    }

    extern void sipVH_QtWidgets_177(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int,const  ::QVariant&);

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

 ::QVariant sipQListWidgetItem::data(int a0) const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QListWidgetItem::data(a0);

    extern  ::QVariant sipVH_QtWidgets_176(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *, int);

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

 ::QListWidgetItem* sipQListWidgetItem::clone() const
{
    sip_gilstate_t sipGILState;
    PyObject *sipMeth;

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

    if (!sipMeth)
        return  ::QListWidgetItem::clone();

    extern  ::QListWidgetItem* sipVH_QtWidgets_175(sip_gilstate_t, sipVirtErrorHandlerFunc, sipSimpleWrapper *, PyObject *);

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


PyDoc_STRVAR(doc_QListWidgetItem_clone, "clone(self) -> QListWidgetItem");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = (sipSelfWasArg ? sipCpp-> ::QListWidgetItem::clone() : sipCpp->clone());

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_clone, doc_QListWidgetItem_clone);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_listWidget, "listWidget(self) -> QListWidget");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = sipCpp->listWidget();

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_listWidget, doc_QListWidgetItem_listWidget);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_flags, "flags(self) -> Qt.ItemFlags");

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

    {
        const  ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QListWidgetItem, &sipCpp))
        {
             ::Qt::ItemFlags*sipRes;

            sipRes = new  ::Qt::ItemFlags(sipCpp->flags());

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_flags, doc_QListWidgetItem_flags);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_text, "text(self) -> str");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = new  ::QString(sipCpp->text());

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_text, doc_QListWidgetItem_text);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_icon, "icon(self) -> QIcon");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = new  ::QIcon(sipCpp->icon());

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_icon, doc_QListWidgetItem_icon);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_statusTip, "statusTip(self) -> str");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = new  ::QString(sipCpp->statusTip());

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_statusTip, doc_QListWidgetItem_statusTip);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_toolTip, "toolTip(self) -> str");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = new  ::QString(sipCpp->toolTip());

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_toolTip, doc_QListWidgetItem_toolTip);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_whatsThis, "whatsThis(self) -> str");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = new  ::QString(sipCpp->whatsThis());

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_whatsThis, doc_QListWidgetItem_whatsThis);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_font, "font(self) -> QFont");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = new  ::QFont(sipCpp->font());

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_font, doc_QListWidgetItem_font);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_textAlignment, "textAlignment(self) -> int");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = sipCpp->textAlignment();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_textAlignment, doc_QListWidgetItem_textAlignment);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setTextAlignment, "setTextAlignment(self, int)");

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

    {
        int a0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QListWidgetItem, &sipCpp, &a0))
        {
            sipCpp->setTextAlignment(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setTextAlignment, doc_QListWidgetItem_setTextAlignment);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_checkState, "checkState(self) -> Qt.CheckState");

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

    {
        const  ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "B", &sipSelf, sipType_QListWidgetItem, &sipCpp))
        {
             ::Qt::CheckState sipRes;

            sipRes = sipCpp->checkState();

            return sipConvertFromEnum(static_cast<int>(sipRes), sipType_Qt_CheckState);
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_checkState, doc_QListWidgetItem_checkState);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setCheckState, "setCheckState(self, Qt.CheckState)");

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

    {
         ::Qt::CheckState a0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BE", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_Qt_CheckState, &a0))
        {
            sipCpp->setCheckState(a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setCheckState, doc_QListWidgetItem_setCheckState);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_sizeHint, "sizeHint(self) -> QSize");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = new  ::QSize(sipCpp->sizeHint());

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_sizeHint, doc_QListWidgetItem_sizeHint);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setSizeHint, "setSizeHint(self, QSize)");

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

    {
        const  ::QSize* a0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_QSize, &a0))
        {
            sipCpp->setSizeHint(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setSizeHint, doc_QListWidgetItem_setSizeHint);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_data, "data(self, int) -> Any");

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

    {
        int a0;
        const  ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "Bi", &sipSelf, sipType_QListWidgetItem, &sipCpp, &a0))
        {
             ::QVariant*sipRes;

            sipRes = new  ::QVariant((sipSelfWasArg ? sipCpp-> ::QListWidgetItem::data(a0) : sipCpp->data(a0)));

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_data, doc_QListWidgetItem_data);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setData, "setData(self, int, Any)");

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

    {
        int a0;
        const  ::QVariant* a1;
        int a1State = 0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BiJ1", &sipSelf, sipType_QListWidgetItem, &sipCpp, &a0, sipType_QVariant, &a1, &a1State))
        {
            (sipSelfWasArg ? sipCpp-> ::QListWidgetItem::setData(a0,*a1) : sipCpp->setData(a0,*a1));
            sipReleaseType(const_cast< ::QVariant *>(a1), sipType_QVariant, a1State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setData, doc_QListWidgetItem_setData);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_read, "read(self, QDataStream)");

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

    {
         ::QDataStream* a0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_QDataStream, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::QListWidgetItem::read(*a0) : sipCpp->read(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_read, doc_QListWidgetItem_read);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_write, "write(self, QDataStream)");

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

    {
         ::QDataStream* a0;
        const  ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_QDataStream, &a0))
        {
            Py_BEGIN_ALLOW_THREADS
            (sipSelfWasArg ? sipCpp-> ::QListWidgetItem::write(*a0) : sipCpp->write(*a0));
            Py_END_ALLOW_THREADS

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_write, doc_QListWidgetItem_write);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_type, "type(self) -> int");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = sipCpp->type();

            return PyLong_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_type, doc_QListWidgetItem_type);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setFlags, "setFlags(self, Union[Qt.ItemFlags, Qt.ItemFlag])");

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

    {
         ::Qt::ItemFlags* a0;
        int a0State = 0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_Qt_ItemFlags, &a0, &a0State))
        {
            sipCpp->setFlags(*a0);
            sipReleaseType(a0, sipType_Qt_ItemFlags, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setFlags, doc_QListWidgetItem_setFlags);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setText, "setText(self, str)");

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

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->setText(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setText, doc_QListWidgetItem_setText);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setIcon, "setIcon(self, QIcon)");

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

    {
        const  ::QIcon* a0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_QIcon, &a0))
        {
            sipCpp->setIcon(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setIcon, doc_QListWidgetItem_setIcon);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setStatusTip, "setStatusTip(self, str)");

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

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->setStatusTip(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setStatusTip, doc_QListWidgetItem_setStatusTip);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setToolTip, "setToolTip(self, str)");

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

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->setToolTip(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setToolTip, doc_QListWidgetItem_setToolTip);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setWhatsThis, "setWhatsThis(self, str)");

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

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_QString, &a0, &a0State))
        {
            sipCpp->setWhatsThis(*a0);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setWhatsThis, doc_QListWidgetItem_setWhatsThis);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setFont, "setFont(self, QFont)");

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

    {
        const  ::QFont* a0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ9", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_QFont, &a0))
        {
            sipCpp->setFont(*a0);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setFont, doc_QListWidgetItem_setFont);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_background, "background(self) -> QBrush");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = new  ::QBrush(sipCpp->background());

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_background, doc_QListWidgetItem_background);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setBackground, "setBackground(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])");

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

    {
        const  ::QBrush* a0;
        int a0State = 0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->setBackground(*a0);
            sipReleaseType(const_cast< ::QBrush *>(a0), sipType_QBrush, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setBackground, doc_QListWidgetItem_setBackground);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_foreground, "foreground(self) -> QBrush");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = new  ::QBrush(sipCpp->foreground());

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

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_foreground, doc_QListWidgetItem_foreground);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setForeground, "setForeground(self, Union[QBrush, QColor, Qt.GlobalColor, QGradient])");

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

    {
        const  ::QBrush* a0;
        int a0State = 0;
         ::QListWidgetItem *sipCpp;

        if (sipParseArgs(&sipParseErr, sipArgs, "BJ1", &sipSelf, sipType_QListWidgetItem, &sipCpp, sipType_QBrush, &a0, &a0State))
        {
            sipCpp->setForeground(*a0);
            sipReleaseType(const_cast< ::QBrush *>(a0), sipType_QBrush, a0State);

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setForeground, doc_QListWidgetItem_setForeground);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setSelected, "setSelected(self, bool)");

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

    {
        bool a0;
         ::QListWidgetItem *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setSelected, doc_QListWidgetItem_setSelected);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_isSelected, "isSelected(self) -> bool");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = sipCpp->isSelected();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_isSelected, doc_QListWidgetItem_isSelected);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_setHidden, "setHidden(self, bool)");

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

    {
        bool a0;
         ::QListWidgetItem *sipCpp;

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

            Py_INCREF(Py_None);
            return Py_None;
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_setHidden, doc_QListWidgetItem_setHidden);

    return SIP_NULLPTR;
}


PyDoc_STRVAR(doc_QListWidgetItem_isHidden, "isHidden(self) -> bool");

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

    {
        const  ::QListWidgetItem *sipCpp;

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

            sipRes = sipCpp->isHidden();

            return PyBool_FromLong(sipRes);
        }
    }

    sipNoMethod(sipParseErr, sipName_QListWidgetItem, sipName_isHidden, doc_QListWidgetItem_isHidden);

    return SIP_NULLPTR;
}


extern "C" {static PyObject *slot_QListWidgetItem___ge__(PyObject *,PyObject *);}
static PyObject *slot_QListWidgetItem___ge__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QListWidgetItem *sipCpp = reinterpret_cast< ::QListWidgetItem *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QListWidgetItem));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QListWidgetItem* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QListWidgetItem, &a0))
        {
            bool sipRes;

            sipRes = !sipCpp-> ::QListWidgetItem::operator<(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtWidgets, ge_slot, sipType_QListWidgetItem, sipSelf, sipArg);
}


extern "C" {static PyObject *slot_QListWidgetItem___lt__(PyObject *,PyObject *);}
static PyObject *slot_QListWidgetItem___lt__(PyObject *sipSelf,PyObject *sipArg)
{
     ::QListWidgetItem *sipCpp = reinterpret_cast< ::QListWidgetItem *>(sipGetCppPtr((sipSimpleWrapper *)sipSelf,sipType_QListWidgetItem));

    if (!sipCpp)
        return SIP_NULLPTR;

    PyObject *sipParseErr = SIP_NULLPTR;

    {
        const  ::QListWidgetItem* a0;

        if (sipParseArgs(&sipParseErr, sipArg, "1J9", sipType_QListWidgetItem, &a0))
        {
            bool sipRes;

            sipRes = sipCpp-> ::QListWidgetItem::operator<(*a0);

            return PyBool_FromLong(sipRes);
        }
    }

    Py_XDECREF(sipParseErr);

    if (sipParseErr == Py_None)
        return SIP_NULLPTR;

    return sipPySlotExtend(&sipModuleAPI_QtWidgets, lt_slot, sipType_QListWidgetItem, sipSelf, sipArg);
}


/* Call the instance's destructor. */
extern "C" {static void release_QListWidgetItem(void *, int);}
static void release_QListWidgetItem(void *sipCppV, int sipState)
{
    if (sipState & SIP_DERIVED_CLASS)
        delete reinterpret_cast<sipQListWidgetItem *>(sipCppV);
    else
        delete reinterpret_cast< ::QListWidgetItem *>(sipCppV);
}


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

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


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

    {
         ::QListWidget* a0 = 0;
        int a1 =  ::QListWidgetItem::Type;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "|JHi", sipType_QListWidget, &a0, sipOwner, &a1))
        {
            sipCpp = new sipQListWidgetItem(a0,a1);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QString* a0;
        int a0State = 0;
         ::QListWidget* a1 = 0;
        int a2 =  ::QListWidgetItem::Type;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J1|JHi", sipType_QString, &a0, &a0State, sipType_QListWidget, &a1, sipOwner, &a2))
        {
            sipCpp = new sipQListWidgetItem(*a0,a1,a2);
            sipReleaseType(const_cast< ::QString *>(a0), sipType_QString, a0State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QIcon* a0;
        const  ::QString* a1;
        int a1State = 0;
         ::QListWidget* a2 = 0;
        int a3 =  ::QListWidgetItem::Type;

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

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, sipKwdList, sipUnused, "J9J1|JHi", sipType_QIcon, &a0, sipType_QString, &a1, &a1State, sipType_QListWidget, &a2, sipOwner, &a3))
        {
            sipCpp = new sipQListWidgetItem(*a0,*a1,a2,a3);
            sipReleaseType(const_cast< ::QString *>(a1), sipType_QString, a1State);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    {
        const  ::QListWidgetItem* a0;

        if (sipParseKwdArgs(sipParseErr, sipArgs, sipKwds, SIP_NULLPTR, sipUnused, "J9", sipType_QListWidgetItem, &a0))
        {
            sipCpp = new sipQListWidgetItem(*a0);

            sipCpp->sipPySelf = sipSelf;

            return sipCpp;
        }
    }

    return SIP_NULLPTR;
}


/* Define this type's Python slots. */
static sipPySlotDef slots_QListWidgetItem[] = {
    {(void *)slot_QListWidgetItem___ge__, ge_slot},
    {(void *)slot_QListWidgetItem___lt__, lt_slot},
    {0, (sipPySlotType)0}
};


static PyMethodDef methods_QListWidgetItem[] = {
    {sipName_background, meth_QListWidgetItem_background, METH_VARARGS, doc_QListWidgetItem_background},
    {sipName_checkState, meth_QListWidgetItem_checkState, METH_VARARGS, doc_QListWidgetItem_checkState},
    {sipName_clone, meth_QListWidgetItem_clone, METH_VARARGS, doc_QListWidgetItem_clone},
    {sipName_data, meth_QListWidgetItem_data, METH_VARARGS, doc_QListWidgetItem_data},
    {sipName_flags, meth_QListWidgetItem_flags, METH_VARARGS, doc_QListWidgetItem_flags},
    {sipName_font, meth_QListWidgetItem_font, METH_VARARGS, doc_QListWidgetItem_font},
    {sipName_foreground, meth_QListWidgetItem_foreground, METH_VARARGS, doc_QListWidgetItem_foreground},
    {sipName_icon, meth_QListWidgetItem_icon, METH_VARARGS, doc_QListWidgetItem_icon},
    {sipName_isHidden, meth_QListWidgetItem_isHidden, METH_VARARGS, doc_QListWidgetItem_isHidden},
    {sipName_isSelected, meth_QListWidgetItem_isSelected, METH_VARARGS, doc_QListWidgetItem_isSelected},
    {sipName_listWidget, meth_QListWidgetItem_listWidget, METH_VARARGS, doc_QListWidgetItem_listWidget},
    {sipName_read, meth_QListWidgetItem_read, METH_VARARGS, doc_QListWidgetItem_read},
    {sipName_setBackground, meth_QListWidgetItem_setBackground, METH_VARARGS, doc_QListWidgetItem_setBackground},
    {sipName_setCheckState, meth_QListWidgetItem_setCheckState, METH_VARARGS, doc_QListWidgetItem_setCheckState},
    {sipName_setData, meth_QListWidgetItem_setData, METH_VARARGS, doc_QListWidgetItem_setData},
    {sipName_setFlags, meth_QListWidgetItem_setFlags, METH_VARARGS, doc_QListWidgetItem_setFlags},
    {sipName_setFont, meth_QListWidgetItem_setFont, METH_VARARGS, doc_QListWidgetItem_setFont},
    {sipName_setForeground, meth_QListWidgetItem_setForeground, METH_VARARGS, doc_QListWidgetItem_setForeground},
    {sipName_setHidden, meth_QListWidgetItem_setHidden, METH_VARARGS, doc_QListWidgetItem_setHidden},
    {sipName_setIcon, meth_QListWidgetItem_setIcon, METH_VARARGS, doc_QListWidgetItem_setIcon},
    {sipName_setSelected, meth_QListWidgetItem_setSelected, METH_VARARGS, doc_QListWidgetItem_setSelected},
    {sipName_setSizeHint, meth_QListWidgetItem_setSizeHint, METH_VARARGS, doc_QListWidgetItem_setSizeHint},
    {sipName_setStatusTip, meth_QListWidgetItem_setStatusTip, METH_VARARGS, doc_QListWidgetItem_setStatusTip},
    {sipName_setText, meth_QListWidgetItem_setText, METH_VARARGS, doc_QListWidgetItem_setText},
    {sipName_setTextAlignment, meth_QListWidgetItem_setTextAlignment, METH_VARARGS, doc_QListWidgetItem_setTextAlignment},
    {sipName_setToolTip, meth_QListWidgetItem_setToolTip, METH_VARARGS, doc_QListWidgetItem_setToolTip},
    {sipName_setWhatsThis, meth_QListWidgetItem_setWhatsThis, METH_VARARGS, doc_QListWidgetItem_setWhatsThis},
    {sipName_sizeHint, meth_QListWidgetItem_sizeHint, METH_VARARGS, doc_QListWidgetItem_sizeHint},
    {sipName_statusTip, meth_QListWidgetItem_statusTip, METH_VARARGS, doc_QListWidgetItem_statusTip},
    {sipName_text, meth_QListWidgetItem_text, METH_VARARGS, doc_QListWidgetItem_text},
    {sipName_textAlignment, meth_QListWidgetItem_textAlignment, METH_VARARGS, doc_QListWidgetItem_textAlignment},
    {sipName_toolTip, meth_QListWidgetItem_toolTip, METH_VARARGS, doc_QListWidgetItem_toolTip},
    {sipName_type, meth_QListWidgetItem_type, METH_VARARGS, doc_QListWidgetItem_type},
    {sipName_whatsThis, meth_QListWidgetItem_whatsThis, METH_VARARGS, doc_QListWidgetItem_whatsThis},
    {sipName_write, meth_QListWidgetItem_write, METH_VARARGS, doc_QListWidgetItem_write}
};

static sipEnumMemberDef enummembers_QListWidgetItem[] = {
    {sipName_Type, static_cast<int>( ::QListWidgetItem::Type), 224},
    {sipName_UserType, static_cast<int>( ::QListWidgetItem::UserType), 224},
};

PyDoc_STRVAR(doc_QListWidgetItem, "\1QListWidgetItem(parent: QListWidget = None, type: int = QListWidgetItem.Type)\n"
"QListWidgetItem(str, parent: QListWidget = None, type: int = QListWidgetItem.Type)\n"
"QListWidgetItem(QIcon, str, parent: QListWidget = None, type: int = QListWidgetItem.Type)\n"
"QListWidgetItem(QListWidgetItem)");


static pyqt5ClassPluginDef plugin_QListWidgetItem = {
    SIP_NULLPTR,
    0,
    SIP_NULLPTR,
    SIP_NULLPTR
};


sipClassTypeDef sipTypeDef_QtWidgets_QListWidgetItem = {
    {
        -1,
        SIP_NULLPTR,
        SIP_NULLPTR,
        SIP_TYPE_SUPER_INIT|SIP_TYPE_LIMITED_API|SIP_TYPE_CLASS,
        sipNameNr_QListWidgetItem,
        SIP_NULLPTR,
        &plugin_QListWidgetItem
    },
    {
        sipNameNr_QListWidgetItem,
        {0, 0, 1},
        35, methods_QListWidgetItem,
        2, enummembers_QListWidgetItem,
        0, SIP_NULLPTR,
        {SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR, SIP_NULLPTR},
    },
    doc_QListWidgetItem,
    -1,
    -1,
    SIP_NULLPTR,
    slots_QListWidgetItem,
    init_type_QListWidgetItem,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    dealloc_QListWidgetItem,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    release_QListWidgetItem,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    SIP_NULLPTR,
    sizeof ( ::QListWidgetItem),
};
