##// 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_QObject.cpp
255 lines | 8.1 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QObject.h"
#include <PythonQtSignalReceiver.h>
#include <PythonQtMethodInfo.h>
#include <PythonQtConversion.h>
#include <QVarLengthArray>
#include <QVariant>
#include <qbytearray.h>
#include <qcoreevent.h>
#include <qlist.h>
#include <qobject.h>
void PythonQtShell_QObject::childEvent(QChildEvent* arg__1)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const char* argumentList[] ={"" , "QChildEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
}
}
QObject::childEvent(arg__1);
}
void PythonQtShell_QObject::customEvent(QEvent* arg__1)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const char* argumentList[] ={"" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
}
}
QObject::customEvent(arg__1);
}
bool PythonQtShell_QObject::event(QEvent* arg__1)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const char* argumentList[] ={"bool" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
bool returnValue;
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) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("event", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QObject::event(arg__1);
}
bool PythonQtShell_QObject::eventFilter(QObject* arg__1, QEvent* arg__2)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList);
bool returnValue;
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) {
if (args[0]==NULL) {
PythonQt::priv()->handleVirtualOverloadReturnError("eventFilter", methodInfo, result);
} else {
returnValue = *((bool*)args[0]);
}
}
}
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return returnValue;
}
}
return QObject::eventFilter(arg__1, arg__2);
}
void PythonQtShell_QObject::timerEvent(QTimerEvent* arg__1)
{
if (_wrapper) {
PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent");
PyErr_Clear();
if (obj && !PythonQtSlotFunction_Check(obj)) {
static const char* argumentList[] ={"" , "QTimerEvent*"};
static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList);
void* args[2] = {NULL, (void*)&arg__1};
PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true);
if (result) { Py_DECREF(result); }
Py_DECREF(obj);
return;
}
}
QObject::timerEvent(arg__1);
}
QObject* PythonQtWrapper_QObject::new_QObject(QObject* parent)
{
return new PythonQtShell_QObject(parent); }
bool PythonQtWrapper_QObject::blockSignals(QObject* theWrappedObject, bool b)
{
return ( theWrappedObject->blockSignals(b));
}
QList<QByteArray > PythonQtWrapper_QObject::dynamicPropertyNames(QObject* theWrappedObject) const
{
return ( theWrappedObject->dynamicPropertyNames());
}
QString PythonQtWrapper_QObject::objectName(QObject* theWrappedObject) const
{
return ( theWrappedObject->objectName());
}
void PythonQtWrapper_QObject::customEvent(QObject* theWrappedObject, QEvent* arg__1)
{
( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_customEvent(arg__1));
}
QThread* PythonQtWrapper_QObject::thread(QObject* theWrappedObject) const
{
return ( theWrappedObject->thread());
}
bool PythonQtWrapper_QObject::isWidgetType(QObject* theWrappedObject) const
{
return ( theWrappedObject->isWidgetType());
}
void PythonQtWrapper_QObject::moveToThread(QObject* theWrappedObject, QThread* thread)
{
( theWrappedObject->moveToThread(thread));
}
void PythonQtWrapper_QObject::setObjectName(QObject* theWrappedObject, const QString& name)
{
( theWrappedObject->setObjectName(name));
}
void PythonQtWrapper_QObject::childEvent(QObject* theWrappedObject, QChildEvent* arg__1)
{
( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_childEvent(arg__1));
}
void PythonQtWrapper_QObject::dumpObjectInfo(QObject* theWrappedObject)
{
( theWrappedObject->dumpObjectInfo());
}
const QList<QObject* >* PythonQtWrapper_QObject::children(QObject* theWrappedObject) const
{
return &( theWrappedObject->children());
}
void PythonQtWrapper_QObject::setParent(QObject* theWrappedObject, QObject* arg__1)
{
( theWrappedObject->setParent(arg__1));
}
bool PythonQtWrapper_QObject::setProperty(QObject* theWrappedObject, const char* name, const QVariant& value)
{
return ( theWrappedObject->setProperty(name, value));
}
bool PythonQtWrapper_QObject::eventFilter(QObject* theWrappedObject, QObject* arg__1, QEvent* arg__2)
{
return ( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_eventFilter(arg__1, arg__2));
}
void PythonQtWrapper_QObject::removeEventFilter(QObject* theWrappedObject, QObject* arg__1)
{
( theWrappedObject->removeEventFilter(arg__1));
}
bool PythonQtWrapper_QObject::inherits(QObject* theWrappedObject, const char* classname) const
{
return ( theWrappedObject->inherits(classname));
}
void PythonQtWrapper_QObject::dumpObjectTree(QObject* theWrappedObject)
{
( theWrappedObject->dumpObjectTree());
}
void PythonQtWrapper_QObject::timerEvent(QObject* theWrappedObject, QTimerEvent* arg__1)
{
( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_timerEvent(arg__1));
}
QObject* PythonQtWrapper_QObject::parent(QObject* theWrappedObject) const
{
return ( theWrappedObject->parent());
}
bool PythonQtWrapper_QObject::signalsBlocked(QObject* theWrappedObject) const
{
return ( theWrappedObject->signalsBlocked());
}
void PythonQtWrapper_QObject::installEventFilter(QObject* theWrappedObject, QObject* arg__1)
{
( theWrappedObject->installEventFilter(arg__1));
}
bool PythonQtWrapper_QObject::event(QObject* theWrappedObject, QEvent* arg__1)
{
return ( ((PythonQtPublicPromoter_QObject*)theWrappedObject)->promoted_event(arg__1));
}
QVariant PythonQtWrapper_QObject::property(QObject* theWrappedObject, const char* name) const
{
return ( theWrappedObject->property(name));
}
int PythonQtWrapper_QObject::startTimer(QObject* theWrappedObject, int interval)
{
return ( theWrappedObject->startTimer(interval));
}
void PythonQtWrapper_QObject::killTimer(QObject* theWrappedObject, int id)
{
( theWrappedObject->killTimer(id));
}
QString PythonQtWrapper_QObject::toString(QObject* obj) {
QString result;
QDebug d(&result);
d << obj;
return result;
}