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