##// END OF EJS Templates
added alphabetic sorting...
added alphabetic sorting git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@132 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r96:3170eb771a99
Show More
PythonQtWrapper_QAbstractListModel.cpp
808 lines | 32.2 KiB | text/x-c | CppLexer
/ generated_cpp / com_trolltech_qt_core / PythonQtWrapper_QAbstractListModel.cpp
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #include "PythonQtWrapper_QAbstractListModel.h"
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 #include <PythonQtSignalReceiver.h>
#include <PythonQtMethodInfo.h>
#include <PythonQtConversion.h>
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 #include <QSize>
#include <QStringList>
#include <QVariant>
#include <qabstractitemmodel.h>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qdatastream.h>
#include <qlist.h>
#include <qmimedata.h>
#include <qobject.h>
#include <qsize.h>
#include <qstringlist.h>
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 QModelIndex PythonQtShell_QAbstractListModel::buddy(const QModelIndex& index) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "buddy");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"QModelIndex" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
QModelIndex returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[2] = {NULL, (void*)&index};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("buddy", methodInfo, result);
} else {
returnValue = *((QModelIndex*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::buddy(index);
}
bool PythonQtShell_QAbstractListModel::canFetchMore(const QModelIndex& parent) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "canFetchMore");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"bool" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[2] = {NULL, (void*)&parent};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("canFetchMore", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::canFetchMore(parent);
}
void PythonQtShell_QAbstractListModel::childEvent(QChildEvent* arg__1)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"" , "QChildEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
}
}
QAbstractListModel::childEvent(arg__1);
}
void PythonQtShell_QAbstractListModel::customEvent(QEvent* arg__1)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
}
}
QAbstractListModel::customEvent(arg__1);
}
QVariant PythonQtShell_QAbstractListModel::data(const QModelIndex& index, int role) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "data");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"QVariant" , "const QModelIndex&" , "int"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
QVariant returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[3] = {NULL, (void*)&index, (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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("data", methodInfo, result);
} else {
returnValue = *((QVariant*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
florianlink
recreated wrappers to match current python qt version...
r73 QVariant result;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 return result;
}
bool PythonQtShell_QAbstractListModel::dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropMimeData");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"bool" , "const QMimeData*" , "Qt::DropAction" , "int" , "int" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList);
bool returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[6] = {NULL, (void*)&data, (void*)&action, (void*)&row, (void*)&column, (void*)&parent};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("dropMimeData", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::dropMimeData(data, action, row, column, parent);
}
bool PythonQtShell_QAbstractListModel::event(QEvent* arg__1)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"bool" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[2] = {NULL, (void*)&arg__1};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::event(arg__1);
}
bool PythonQtShell_QAbstractListModel::eventFilter(QObject* arg__1, QEvent* arg__2)
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 {
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
bool returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[3] = {NULL, (void*)&arg__1, (void*)&arg__2};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::eventFilter(arg__1, arg__2);
}
void PythonQtShell_QAbstractListModel::fetchMore(const QModelIndex& parent)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fetchMore");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[2] = {NULL, (void*)&parent};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
}
}
QAbstractListModel::fetchMore(parent);
}
Qt::ItemFlags PythonQtShell_QAbstractListModel::flags(const QModelIndex& index) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "flags");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"Qt::ItemFlags" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
Qt::ItemFlags returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[2] = {NULL, (void*)&index};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("flags", methodInfo, result);
} else {
returnValue = *((Qt::ItemFlags*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::flags(index);
}
QVariant PythonQtShell_QAbstractListModel::headerData(int section, Qt::Orientation orientation, int role) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "headerData");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"QVariant" , "int" , "Qt::Orientation" , "int"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
QVariant returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[4] = {NULL, (void*)&section, (void*)&orientation, (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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("headerData", methodInfo, result);
} else {
returnValue = *((QVariant*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::headerData(section, orientation, role);
}
QModelIndex PythonQtShell_QAbstractListModel::index(int row, int column, const QModelIndex& parent) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "index");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"QModelIndex" , "int" , "int" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
QModelIndex returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[4] = {NULL, (void*)&row, (void*)&column, (void*)&parent};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("index", methodInfo, result);
} else {
returnValue = *((QModelIndex*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::index(row, column, parent);
}
bool PythonQtShell_QAbstractListModel::insertColumns(int column, int count, const QModelIndex& parent)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertColumns");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
bool returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("insertColumns", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::insertColumns(column, count, parent);
}
bool PythonQtShell_QAbstractListModel::insertRows(int row, int count, const QModelIndex& parent)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "insertRows");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
bool returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("insertRows", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::insertRows(row, count, parent);
}
QMap<int , QVariant > PythonQtShell_QAbstractListModel::itemData(const QModelIndex& index) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "itemData");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"QMap<int , QVariant >" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
QMap<int , QVariant > returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[2] = {NULL, (void*)&index};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("itemData", methodInfo, result);
} else {
returnValue = *((QMap<int , QVariant >*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::itemData(index);
}
QList<QModelIndex > PythonQtShell_QAbstractListModel::match(const QModelIndex& start, int role, const QVariant& value, int hits, Qt::MatchFlags flags) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "match");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"QList<QModelIndex >" , "const QModelIndex&" , "int" , "const QVariant&" , "int" , "Qt::MatchFlags"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(6, argumentList);
QList<QModelIndex > returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[6] = {NULL, (void*)&start, (void*)&role, (void*)&value, (void*)&hits, (void*)&flags};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("match", methodInfo, result);
} else {
returnValue = *((QList<QModelIndex >*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::match(start, role, value, hits, flags);
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 }
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 QMimeData* PythonQtShell_QAbstractListModel::mimeData(const QList<QModelIndex >& indexes) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeData");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"QMimeData*" , "const QList<QModelIndex >&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
QMimeData* returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[2] = {NULL, (void*)&indexes};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("mimeData", methodInfo, result);
} else {
returnValue = *((QMimeData**)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::mimeData(indexes);
}
QStringList PythonQtShell_QAbstractListModel::mimeTypes() const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mimeTypes");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"QStringList"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
QStringList returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("mimeTypes", methodInfo, result);
} else {
returnValue = *((QStringList*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::mimeTypes();
}
bool PythonQtShell_QAbstractListModel::removeColumns(int column, int count, const QModelIndex& parent)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeColumns");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
bool returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[4] = {NULL, (void*)&column, (void*)&count, (void*)&parent};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("removeColumns", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::removeColumns(column, count, parent);
}
bool PythonQtShell_QAbstractListModel::removeRows(int row, int count, const QModelIndex& parent)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "removeRows");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"bool" , "int" , "int" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
bool returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[4] = {NULL, (void*)&row, (void*)&count, (void*)&parent};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("removeRows", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::removeRows(row, count, parent);
}
void PythonQtShell_QAbstractListModel::revert()
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "revert");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={""};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[1] = {NULL};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
}
}
QAbstractListModel::revert();
}
int PythonQtShell_QAbstractListModel::rowCount(const QModelIndex& parent) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "rowCount");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"int" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
int returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[2] = {NULL, (void*)&parent};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("rowCount", methodInfo, result);
} else {
returnValue = *((int*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
florianlink
recreated wrappers to match current python qt version...
r73 int result;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 return result;
}
bool PythonQtShell_QAbstractListModel::setData(const QModelIndex& index, const QVariant& value, int role)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setData");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QVariant&" , "int"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList);
bool returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[4] = {NULL, (void*)&index, (void*)&value, (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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("setData", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::setData(index, value, role);
}
bool PythonQtShell_QAbstractListModel::setHeaderData(int section, Qt::Orientation orientation, const QVariant& value, int role)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setHeaderData");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"bool" , "int" , "Qt::Orientation" , "const QVariant&" , "int"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(5, argumentList);
bool returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[5] = {NULL, (void*)&section, (void*)&orientation, (void*)&value, (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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("setHeaderData", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::setHeaderData(section, orientation, value, role);
}
bool PythonQtShell_QAbstractListModel::setItemData(const QModelIndex& index, const QMap<int , QVariant >& roles)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setItemData");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"bool" , "const QModelIndex&" , "const QMap<int , QVariant >&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
bool returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[3] = {NULL, (void*)&index, (void*)&roles};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("setItemData", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::setItemData(index, roles);
}
void PythonQtShell_QAbstractListModel::sort(int column, Qt::SortOrder order)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sort");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"" , "int" , "Qt::SortOrder"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[3] = {NULL, (void*)&column, (void*)&order};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
}
}
QAbstractListModel::sort(column, order);
}
QSize PythonQtShell_QAbstractListModel::span(const QModelIndex& index) const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "span");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"QSize" , "const QModelIndex&"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
QSize returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[2] = {NULL, (void*)&index};
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("span", methodInfo, result);
} else {
returnValue = *((QSize*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::span(index);
}
bool PythonQtShell_QAbstractListModel::submit()
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "submit");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"bool"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
bool returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("submit", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::submit();
}
Qt::DropActions PythonQtShell_QAbstractListModel::supportedDropActions() const
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "supportedDropActions");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"Qt::DropActions"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList);
Qt::DropActions returnValue;
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
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
recreated wrappers to match current python qt version...
r73 if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("supportedDropActions", methodInfo, result);
} else {
returnValue = *((Qt::DropActions*)args[0]);
}
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QAbstractListModel::supportedDropActions();
}
void PythonQtShell_QAbstractListModel::timerEvent(QTimerEvent* arg__1)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
florianlink
recreated wrappers to match current python qt version...
r73 static const char* argumentList[] ={"" , "QTimerEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
}
}
QAbstractListModel::timerEvent(arg__1);
}
QAbstractListModel* PythonQtWrapper_QAbstractListModel::new_QAbstractListModel(QObject* parent)
{
return new PythonQtShell_QAbstractListModel(parent); }
florianlink
added initial generated wrappers for Qt 4.4.3...
r13
florianlink
upgraded wrappers to current generator version...
r28 bool PythonQtWrapper_QAbstractListModel::dropMimeData(QAbstractListModel* theWrappedObject, const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex& parent)
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 {
florianlink
recreated wrappers to match current python qt version...
r73 return ( ((PythonQtPublicPromoter_QAbstractListModel*)theWrappedObject)->promoted_dropMimeData(data, action, row, column, parent));
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 }
florianlink
upgraded wrappers to current generator version...
r28 QModelIndex PythonQtWrapper_QAbstractListModel::index(QAbstractListModel* theWrappedObject, int row, int column, const QModelIndex& parent) const
florianlink
- added support for deriving CPP classes in Python and to override all public and protected virtual functions from PythonQt...
r24 {
florianlink
recreated wrappers to match current python qt version...
r73 return ( ((PythonQtPublicPromoter_QAbstractListModel*)theWrappedObject)->promoted_index(row, column, parent));
florianlink
added initial generated wrappers for Qt 4.4.3...
r13 }