PythonQtWrapper_QStandardItem.cpp
589 lines
| 18.7 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QStandardItem.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qabstractitemmodel.h> | ||||
#include <qbrush.h> | ||||
#include <qdatastream.h> | ||||
#include <qfont.h> | ||||
#include <qicon.h> | ||||
#include <qlist.h> | ||||
#include <qsize.h> | ||||
#include <qstandarditemmodel.h> | ||||
florianlink
|
r24 | QStandardItem* PythonQtShell_QStandardItem::clone() const | ||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clone"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"QStandardItem*"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); | ||||
QStandardItem* returnValue; | ||||
florianlink
|
r24 | 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) { | ||||
florianlink
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("clone", methodInfo, result); | ||||
} else { | ||||
returnValue = *((QStandardItem**)args[0]); | ||||
} | ||||
florianlink
|
r24 | } | ||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QStandardItem::clone(); | ||||
} | ||||
QVariant PythonQtShell_QStandardItem::data(int role) const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"QVariant" , "int"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
QVariant returnValue; | ||||
florianlink
|
r24 | 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) { | ||||
florianlink
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result); | ||||
} else { | ||||
returnValue = *((QVariant*)args[0]); | ||||
} | ||||
florianlink
|
r24 | } | ||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QStandardItem::data(role); | ||||
} | ||||
bool PythonQtShell_QStandardItem::operator_less(const QStandardItem& other) const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "operator_less"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"bool" , "const QStandardItem&"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
bool returnValue; | ||||
florianlink
|
r24 | 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) { | ||||
florianlink
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("operator_less", methodInfo, result); | ||||
} else { | ||||
returnValue = *((bool*)args[0]); | ||||
} | ||||
florianlink
|
r24 | } | ||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QStandardItem::operator<(other); | ||||
} | ||||
void PythonQtShell_QStandardItem::read(QDataStream& in) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "read"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"" , "QDataStream&"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
florianlink
|
r24 | void* args[2] = {NULL, (void*)&in}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QStandardItem::read(in); | ||||
} | ||||
void PythonQtShell_QStandardItem::setData(const QVariant& value, int role) | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"" , "const QVariant&" , "int"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); | ||||
florianlink
|
r24 | void* args[3] = {NULL, (void*)&value, (void*)&role}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QStandardItem::setData(value, role); | ||||
} | ||||
int PythonQtShell_QStandardItem::type() const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "type"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"int"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); | ||||
int returnValue; | ||||
florianlink
|
r24 | 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) { | ||||
florianlink
|
r73 | if (args[0]==NULL) { | ||
PythonQt::priv()->handleVirtualOverloadReturnError("type", methodInfo, result); | ||||
} else { | ||||
returnValue = *((int*)args[0]); | ||||
} | ||||
florianlink
|
r24 | } | ||
} | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return returnValue; | ||||
} | ||||
} | ||||
return QStandardItem::type(); | ||||
} | ||||
void PythonQtShell_QStandardItem::write(QDataStream& out) const | ||||
{ | ||||
if (_wrapper) { | ||||
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "write"); | ||||
PyErr_Clear(); | ||||
if (obj && !PythonQtSlotFunction_Check(obj)) { | ||||
florianlink
|
r73 | static const char* argumentList[] ={"" , "QDataStream&"}; | ||
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); | ||||
florianlink
|
r24 | void* args[2] = {NULL, (void*)&out}; | ||
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); | ||||
if (result) { Py_DECREF(result); } | ||||
Py_DECREF(obj); | ||||
return; | ||||
} | ||||
} | ||||
QStandardItem::write(out); | ||||
} | ||||
florianlink
|
r13 | QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem() | ||
{ | ||||
florianlink
|
r24 | return new PythonQtShell_QStandardItem(); } | ||
florianlink
|
r13 | |||
QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem(const QIcon& icon, const QString& text) | ||||
{ | ||||
florianlink
|
r24 | return new PythonQtShell_QStandardItem(icon, text); } | ||
florianlink
|
r13 | |||
QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem(const QString& text) | ||||
{ | ||||
florianlink
|
r24 | return new PythonQtShell_QStandardItem(text); } | ||
florianlink
|
r13 | |||
QStandardItem* PythonQtWrapper_QStandardItem::new_QStandardItem(int rows, int columns) | ||||
{ | ||||
florianlink
|
r24 | return new PythonQtShell_QStandardItem(rows, columns); } | ||
florianlink
|
r13 | |||
florianlink
|
r73 | QStandardItem* PythonQtWrapper_QStandardItem::clone(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( ((PythonQtPublicPromoter_QStandardItem*)theWrappedObject)->promoted_clone()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QStandardItem* PythonQtWrapper_QStandardItem::parent(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->parent()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setCheckable(QStandardItem* theWrappedObject, bool checkable) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setCheckable(checkable)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setRowCount(QStandardItem* theWrappedObject, int rows) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setRowCount(rows)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QStandardItem::isDropEnabled(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isDropEnabled()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QStandardItem::isTristate(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isTristate()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QStandardItem::isEnabled(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isEnabled()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QStandardItem::hasChildren(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->hasChildren()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QStandardItem* PythonQtWrapper_QStandardItem::takeChild(QStandardItem* theWrappedObject, int row, int column) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->takeChild(row, column)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::appendRow(QStandardItem* theWrappedObject, const QList<QStandardItem* >& items) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->appendRow(items)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::removeRow(QStandardItem* theWrappedObject, int row) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->removeRow(row)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setAccessibleDescription(QStandardItem* theWrappedObject, const QString& accessibleDescription) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setAccessibleDescription(accessibleDescription)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setIcon(QStandardItem* theWrappedObject, const QIcon& icon) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setIcon(icon)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QVariant PythonQtWrapper_QStandardItem::data(QStandardItem* theWrappedObject, int role) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( ((PythonQtPublicPromoter_QStandardItem*)theWrappedObject)->promoted_data(role)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QList<QStandardItem* > PythonQtWrapper_QStandardItem::takeColumn(QStandardItem* theWrappedObject, int column) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->takeColumn(column)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QIcon PythonQtWrapper_QStandardItem::icon(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->icon()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::removeColumns(QStandardItem* theWrappedObject, int column, int count) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->removeColumns(column, count)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | int PythonQtWrapper_QStandardItem::column(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->column()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QSize PythonQtWrapper_QStandardItem::sizeHint(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->sizeHint()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QStandardItem::accessibleDescription(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->accessibleDescription()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QList<QStandardItem* > PythonQtWrapper_QStandardItem::takeRow(QStandardItem* theWrappedObject, int row) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->takeRow(row)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QFont PythonQtWrapper_QStandardItem::font(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->font()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setColumnCount(QStandardItem* theWrappedObject, int columns) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setColumnCount(columns)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setEnabled(QStandardItem* theWrappedObject, bool enabled) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setEnabled(enabled)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QStandardItem* PythonQtWrapper_QStandardItem::child(QStandardItem* theWrappedObject, int row, int column) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->child(row, column)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setSelectable(QStandardItem* theWrappedObject, bool selectable) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setSelectable(selectable)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QBrush PythonQtWrapper_QStandardItem::foreground(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->foreground()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setSizeHint(QStandardItem* theWrappedObject, const QSize& sizeHint) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setSizeHint(sizeHint)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setDragEnabled(QStandardItem* theWrappedObject, bool dragEnabled) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setDragEnabled(dragEnabled)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setTextAlignment(QStandardItem* theWrappedObject, Qt::Alignment textAlignment) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setTextAlignment(textAlignment)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QModelIndex PythonQtWrapper_QStandardItem::index(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->index()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::readFrom(QStandardItem* theWrappedObject, QDataStream& in) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | in >> (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setToolTip(QStandardItem* theWrappedObject, const QString& toolTip) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setToolTip(toolTip)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::appendRow(QStandardItem* theWrappedObject, QStandardItem* item) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->appendRow(item)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::insertRows(QStandardItem* theWrappedObject, int row, int count) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertRows(row, count)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::insertRows(QStandardItem* theWrappedObject, int row, const QList<QStandardItem* >& items) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertRows(row, items)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | Qt::CheckState PythonQtWrapper_QStandardItem::checkState(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->checkState()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QStandardItem::columnCount(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->columnCount()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QStandardItem::isSelectable(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isSelectable()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setAccessibleText(QStandardItem* theWrappedObject, const QString& accessibleText) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setAccessibleText(accessibleText)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QStandardItem::isDragEnabled(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isDragEnabled()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QStandardItem::type(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( ((PythonQtPublicPromoter_QStandardItem*)theWrappedObject)->promoted_type()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setEditable(QStandardItem* theWrappedObject, bool editable) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setEditable(editable)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setForeground(QStandardItem* theWrappedObject, const QBrush& brush) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setForeground(brush)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QStandardItem::accessibleText(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->accessibleText()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::removeColumn(QStandardItem* theWrappedObject, int column) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->removeColumn(column)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QStandardItem::whatsThis(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->whatsThis()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QStandardItem::isEditable(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isEditable()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setFlags(QStandardItem* theWrappedObject, Qt::ItemFlags flags) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setFlags(flags)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setDropEnabled(QStandardItem* theWrappedObject, bool dropEnabled) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setDropEnabled(dropEnabled)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setChild(QStandardItem* theWrappedObject, int row, QStandardItem* item) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setChild(row, item)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::insertRow(QStandardItem* theWrappedObject, int row, const QList<QStandardItem* >& items) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertRow(row, items)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QStandardItem::appendColumn(QStandardItem* theWrappedObject, const QList<QStandardItem* >& items) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->appendColumn(items)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setBackground(QStandardItem* theWrappedObject, const QBrush& brush) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setBackground(brush)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::insertColumn(QStandardItem* theWrappedObject, int column, const QList<QStandardItem* >& items) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertColumn(column, items)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setText(QStandardItem* theWrappedObject, const QString& text) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setText(text)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::writeTo(QStandardItem* theWrappedObject, QDataStream& out) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | out << (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QStandardItemModel* PythonQtWrapper_QStandardItem::model(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->model()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setTristate(QStandardItem* theWrappedObject, bool tristate) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setTristate(tristate)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setCheckState(QStandardItem* theWrappedObject, Qt::CheckState checkState) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setCheckState(checkState)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setStatusTip(QStandardItem* theWrappedObject, const QString& statusTip) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setStatusTip(statusTip)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::sortChildren(QStandardItem* theWrappedObject, int column, Qt::SortOrder order) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->sortChildren(column, order)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::appendRows(QStandardItem* theWrappedObject, const QList<QStandardItem* >& items) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->appendRows(items)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QStandardItem::toolTip(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->toolTip()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::removeRows(QStandardItem* theWrappedObject, int row, int count) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->removeRows(row, count)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | Qt::Alignment PythonQtWrapper_QStandardItem::textAlignment(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->textAlignment()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setData(QStandardItem* theWrappedObject, const QVariant& value, int role) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( ((PythonQtPublicPromoter_QStandardItem*)theWrappedObject)->promoted_setData(value, role)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::insertRow(QStandardItem* theWrappedObject, int row, QStandardItem* item) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertRow(row, item)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QStandardItem::row(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->row()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QStandardItem::statusTip(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->statusTip()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QString PythonQtWrapper_QStandardItem::text(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->text()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::insertColumns(QStandardItem* theWrappedObject, int column, int count) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->insertColumns(column, count)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | bool PythonQtWrapper_QStandardItem::isCheckable(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->isCheckable()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setChild(QStandardItem* theWrappedObject, int row, int column, QStandardItem* item) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setChild(row, column, item)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | QBrush PythonQtWrapper_QStandardItem::background(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->background()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | void PythonQtWrapper_QStandardItem::setFont(QStandardItem* theWrappedObject, const QFont& font) | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setFont(font)); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | int PythonQtWrapper_QStandardItem::rowCount(QStandardItem* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r73 | return ( theWrappedObject->rowCount()); | ||
florianlink
|
r13 | } | ||
florianlink
|
r73 | Qt::ItemFlags PythonQtWrapper_QStandardItem::flags(QStandardItem* theWrappedObject) const | ||
{ | ||||
return ( theWrappedObject->flags()); | ||||
} | ||||
void PythonQtWrapper_QStandardItem::setWhatsThis(QStandardItem* theWrappedObject, const QString& whatsThis) | ||||
florianlink
|
r13 | { | ||
florianlink
|
r73 | ( theWrappedObject->setWhatsThis(whatsThis)); | ||
florianlink
|
r13 | } | ||