#include "PythonQtWrapper_QListWidgetItem.h" #include #include #include #include #include #include #include #include #include #include QListWidgetItem* PythonQtShell_QListWidgetItem::clone() const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clone"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"QListWidgetItem*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QListWidgetItem* returnValue; void* args[1] = {NULL}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { if (args[0]==NULL) { PythonQt::priv()->handleVirtualOverloadReturnError("clone", methodInfo, result); } else { returnValue = *((QListWidgetItem**)args[0]); } } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QListWidgetItem::clone(); } QVariant PythonQtShell_QListWidgetItem::data(int role) const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"QVariant" , "int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QVariant returnValue; void* args[2] = {NULL, (void*)&role}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { if (args[0]==NULL) { PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); } else { returnValue = *((QVariant*)args[0]); } } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QListWidgetItem::data(role); } bool PythonQtShell_QListWidgetItem::operator_less(const QListWidgetItem& other) const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "operator_less"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"bool" , "const QListWidgetItem&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; void* args[2] = {NULL, (void*)&other}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); if (args[0]!=&returnValue) { if (args[0]==NULL) { PythonQt::priv()->handleVirtualOverloadReturnError("operator_less", methodInfo, result); } else { returnValue = *((bool*)args[0]); } } } if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; } } return QListWidgetItem::operator<(other); } void PythonQtShell_QListWidgetItem::read(QDataStream& in) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "read"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"" , "QDataStream&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&in}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QListWidgetItem::read(in); } void PythonQtShell_QListWidgetItem::setBackgroundColor(const QColor& color) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setBackgroundColor"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"" , "const QColor&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&color}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QListWidgetItem::setBackgroundColor(color); } void PythonQtShell_QListWidgetItem::setData(int role, const QVariant& value) { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"" , "int" , "const QVariant&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); void* args[3] = {NULL, (void*)&role, (void*)&value}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QListWidgetItem::setData(role, value); } void PythonQtShell_QListWidgetItem::write(QDataStream& out) const { if (_wrapper) { PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "write"); PyErr_Clear(); if (obj && !PythonQtSlotFunction_Check(obj)) { static const char* argumentList[] ={"" , "QDataStream&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&out}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { Py_DECREF(result); } Py_DECREF(obj); return; } } QListWidgetItem::write(out); } QListWidgetItem* PythonQtWrapper_QListWidgetItem::new_QListWidgetItem(QListWidget* view, int type) { return new PythonQtShell_QListWidgetItem(view, type); } QListWidgetItem* PythonQtWrapper_QListWidgetItem::new_QListWidgetItem(const QIcon& icon, const QString& text, QListWidget* view, int type) { return new PythonQtShell_QListWidgetItem(icon, text, view, type); } QListWidgetItem* PythonQtWrapper_QListWidgetItem::new_QListWidgetItem(const QString& text, QListWidget* view, int type) { return new PythonQtShell_QListWidgetItem(text, view, type); } int PythonQtWrapper_QListWidgetItem::type(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->type()); } void PythonQtWrapper_QListWidgetItem::setCheckState(QListWidgetItem* theWrappedObject, Qt::CheckState state) { ( theWrappedObject->setCheckState(state)); } QBrush PythonQtWrapper_QListWidgetItem::foreground(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->foreground()); } QIcon PythonQtWrapper_QListWidgetItem::icon(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->icon()); } bool PythonQtWrapper_QListWidgetItem::isHidden(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->isHidden()); } QSize PythonQtWrapper_QListWidgetItem::sizeHint(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->sizeHint()); } QFont PythonQtWrapper_QListWidgetItem::font(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->font()); } void PythonQtWrapper_QListWidgetItem::setStatusTip(QListWidgetItem* theWrappedObject, const QString& statusTip) { ( theWrappedObject->setStatusTip(statusTip)); } QString PythonQtWrapper_QListWidgetItem::text(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->text()); } QString PythonQtWrapper_QListWidgetItem::toolTip(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->toolTip()); } void PythonQtWrapper_QListWidgetItem::setBackground(QListWidgetItem* theWrappedObject, const QBrush& brush) { ( theWrappedObject->setBackground(brush)); } void PythonQtWrapper_QListWidgetItem::setIcon(QListWidgetItem* theWrappedObject, const QIcon& icon) { ( theWrappedObject->setIcon(icon)); } void PythonQtWrapper_QListWidgetItem::setHidden(QListWidgetItem* theWrappedObject, bool hide) { ( theWrappedObject->setHidden(hide)); } QString PythonQtWrapper_QListWidgetItem::statusTip(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->statusTip()); } QVariant PythonQtWrapper_QListWidgetItem::data(QListWidgetItem* theWrappedObject, int role) const { return ( ((PythonQtPublicPromoter_QListWidgetItem*)theWrappedObject)->promoted_data(role)); } void PythonQtWrapper_QListWidgetItem::setWhatsThis(QListWidgetItem* theWrappedObject, const QString& whatsThis) { ( theWrappedObject->setWhatsThis(whatsThis)); } void PythonQtWrapper_QListWidgetItem::setFont(QListWidgetItem* theWrappedObject, const QFont& font) { ( theWrappedObject->setFont(font)); } void PythonQtWrapper_QListWidgetItem::setTextAlignment(QListWidgetItem* theWrappedObject, int alignment) { ( theWrappedObject->setTextAlignment(alignment)); } QListWidgetItem* PythonQtWrapper_QListWidgetItem::clone(QListWidgetItem* theWrappedObject) const { return ( ((PythonQtPublicPromoter_QListWidgetItem*)theWrappedObject)->promoted_clone()); } Qt::ItemFlags PythonQtWrapper_QListWidgetItem::flags(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->flags()); } void PythonQtWrapper_QListWidgetItem::readFrom(QListWidgetItem* theWrappedObject, QDataStream& in) { in >> (*theWrappedObject); } void PythonQtWrapper_QListWidgetItem::writeTo(QListWidgetItem* theWrappedObject, QDataStream& out) { out << (*theWrappedObject); } void PythonQtWrapper_QListWidgetItem::setSelected(QListWidgetItem* theWrappedObject, bool select) { ( theWrappedObject->setSelected(select)); } QBrush PythonQtWrapper_QListWidgetItem::background(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->background()); } Qt::CheckState PythonQtWrapper_QListWidgetItem::checkState(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->checkState()); } void PythonQtWrapper_QListWidgetItem::setData(QListWidgetItem* theWrappedObject, int role, const QVariant& value) { ( ((PythonQtPublicPromoter_QListWidgetItem*)theWrappedObject)->promoted_setData(role, value)); } void PythonQtWrapper_QListWidgetItem::setToolTip(QListWidgetItem* theWrappedObject, const QString& toolTip) { ( theWrappedObject->setToolTip(toolTip)); } void PythonQtWrapper_QListWidgetItem::setText(QListWidgetItem* theWrappedObject, const QString& text) { ( theWrappedObject->setText(text)); } bool PythonQtWrapper_QListWidgetItem::isSelected(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->isSelected()); } QListWidget* PythonQtWrapper_QListWidgetItem::listWidget(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->listWidget()); } void PythonQtWrapper_QListWidgetItem::setForeground(QListWidgetItem* theWrappedObject, const QBrush& brush) { ( theWrappedObject->setForeground(brush)); } QString PythonQtWrapper_QListWidgetItem::whatsThis(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->whatsThis()); } void PythonQtWrapper_QListWidgetItem::setSizeHint(QListWidgetItem* theWrappedObject, const QSize& size) { ( theWrappedObject->setSizeHint(size)); } void PythonQtWrapper_QListWidgetItem::setFlags(QListWidgetItem* theWrappedObject, Qt::ItemFlags flags) { ( theWrappedObject->setFlags(flags)); } int PythonQtWrapper_QListWidgetItem::textAlignment(QListWidgetItem* theWrappedObject) const { return ( theWrappedObject->textAlignment()); }