diff --git a/.hgsubstate b/.hgsubstate --- a/.hgsubstate +++ b/.hgsubstate @@ -1,4 +1,4 @@ 2c82d72694590cbc2aebb946667f11f60ea89afe src/SocExplorerEngine/PeripheralWidget -e0f25227d6283e833fbb70c5fc1bdc6c3ca8060e src/common/genericBinaryFiles +cc958c79ba0939809a70e63b8bac798930160243 src/common/genericBinaryFiles 2dce25b198558be573f56c1cf337aa95ddd666d6 src/common/lppserial 923afde9cc96bb419cf898560d080ec96991aeca src/common/qhexedit diff --git a/build_cfg/socexplorer.pri b/build_cfg/socexplorer.pri --- a/build_cfg/socexplorer.pri +++ b/build_cfg/socexplorer.pri @@ -3,6 +3,7 @@ QT += core gui xml svg network contains(QT_MAJOR_VERSION, 5) { QT += widgets QT += printsupport + QT += multimedia multimediawidgets } SOCEXPLORER_SDK_BUILD="SOCEXPLORER_SDK_BUILD" diff --git a/src/SocExplorerEngine/SOC/socmodel.cpp b/src/SocExplorerEngine/SOC/socmodel.cpp --- a/src/SocExplorerEngine/SOC/socmodel.cpp +++ b/src/SocExplorerEngine/SOC/socmodel.cpp @@ -27,6 +27,7 @@ SOCModel::SOCModel(socexplorerplugin *ro QObject(parent) { p_rootDev = rootDev; + p_litleEndian = false; } qint32 SOCModel::getEnumDeviceBaseAddress(int VID, int PID, int count) @@ -110,3 +111,8 @@ qint32 SOCModel::readReg(qint32 address) p_rootDev->Read(&valueInt,1,addressInt); return (qint32)valueInt; } + +bool SOCModel::isLitleEndian() +{ + return p_litleEndian; +} diff --git a/src/SocExplorerEngine/SOC/socmodel.h b/src/SocExplorerEngine/SOC/socmodel.h --- a/src/SocExplorerEngine/SOC/socmodel.h +++ b/src/SocExplorerEngine/SOC/socmodel.h @@ -94,10 +94,12 @@ public slots: int addEnumDevice(socExplorerEnumDevice* device); void writeReg(qint32 address,qint32 value); qint32 readReg(qint32 address); + bool isLitleEndian(); private: socexplorerplugin* p_rootDev; QList p_enumeratedDevices; QList clktree; + bool p_litleEndian; }; diff --git a/src/SocExplorerEngine/SocExplorerEngine.pro b/src/SocExplorerEngine/SocExplorerEngine.pro --- a/src/SocExplorerEngine/SocExplorerEngine.pro +++ b/src/SocExplorerEngine/SocExplorerEngine.pro @@ -89,6 +89,7 @@ INCLUDEPATH += engine \ plugins \ pluginManagerWdgt \ ../common \ + ../common/genericBinaryFiles \ ../ \ RegisterMVS \ XmlEngine \ diff --git a/src/SocExplorerEngine/engine/socexplorerengine.cpp b/src/SocExplorerEngine/engine/socexplorerengine.cpp --- a/src/SocExplorerEngine/engine/socexplorerengine.cpp +++ b/src/SocExplorerEngine/engine/socexplorerengine.cpp @@ -281,5 +281,10 @@ void SocExplorerEngine::setLogLevel(int loglvl = level; } +bool SocExplorerEngine::isSocLitleEndian(socexplorerplugin *plugin) +{ + return plugin2Soc(plugin)->isLitleEndian(); +} + diff --git a/src/SocExplorerEngine/engine/socexplorerengine.h b/src/SocExplorerEngine/engine/socexplorerengine.h --- a/src/SocExplorerEngine/engine/socexplorerengine.h +++ b/src/SocExplorerEngine/engine/socexplorerengine.h @@ -107,6 +107,7 @@ public: static void removeSOC(socexplorerplugin* rootPlugin); static void message(socexplorerplugin* sender,const QString& message,int debugLevel=0); static void setLogLevel(int level); + static bool isSocLitleEndian(socexplorerplugin* plugin); signals: void enumDeviceAdded(socExplorerEnumDevice* device); public slots: diff --git a/src/SocExplorerEngine/plugins/genericPySysdriver.cpp b/src/SocExplorerEngine/plugins/genericPySysdriver.cpp --- a/src/SocExplorerEngine/plugins/genericPySysdriver.cpp +++ b/src/SocExplorerEngine/plugins/genericPySysdriver.cpp @@ -11,7 +11,7 @@ #endif #endif - +#include genericPySysdriver::genericPySysdriver(socexplorerplugin* plugin,QObject* parent): @@ -44,56 +44,28 @@ void genericPySysdriver::Write(unsigned bool genericPySysdriver::dumpMemory(unsigned int address,unsigned int count,QString file) { - unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int)); - if(buffer!=NULL) - { - this->plugin->Read(buffer,count,address); - QFile outfile(file); - if (!outfile.open(QIODevice::ReadWrite | QIODevice::Text)) - return false; - QTextStream out(&outfile); - for(int i=0;(unsigned int)iplugin->dumpMemory(address,count,file); } bool genericPySysdriver::memSet(unsigned int address,int value, unsigned int count) { - unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int)); - if(buffer!=NULL) - { - memset((void*)buffer,value,count*sizeof(unsigned int)); - this->plugin->Write(buffer,count,address); - free(buffer ); - return true; - } - return false; + return this->plugin->memSet(address,value,count); } bool genericPySysdriver::loadbin(unsigned int address,QString file) { - QFile infile(file); - if (!infile.open(QIODevice::ReadOnly)) - return false; - uint32_t* buffer = (uint32_t*)malloc(infile.size()); - if(buffer!=NULL) - { - infile.read((char*)buffer,infile.size()); - for(int i=0;i<(infile.size()/4);i++) - { - buffer[i] = socexplorerBswap32(buffer[i]); - } - this->plugin->Write(buffer,infile.size()/4,address); - free(buffer); - return true; - } - return false; + return this->plugin->loadbin(address,file); + +} +bool genericPySysdriver::loadfile(abstractBinFile *file) +{ + return this->plugin->loadfile(file); +} + +bool genericPySysdriver::dumpMemory(unsigned int address, unsigned int count, QString file, const QString &format) +{ + return this->plugin->dumpMemory(address,count,file,format); } QString genericPySysdriver::instance() diff --git a/src/SocExplorerEngine/plugins/genericPySysdriver.h b/src/SocExplorerEngine/plugins/genericPySysdriver.h --- a/src/SocExplorerEngine/plugins/genericPySysdriver.h +++ b/src/SocExplorerEngine/plugins/genericPySysdriver.h @@ -28,6 +28,7 @@ #include #include #include +#include #if defined(SOCEXPLORER_SDK_BUILD) # define SOCEXPLORER_SDK_EXPORT Q_DECL_EXPORT #else @@ -49,6 +50,8 @@ public slots: bool dumpMemory(unsigned int address,unsigned int count,QString file); bool memSet(unsigned int address,int value, unsigned int count); bool loadbin(unsigned int address,QString file); + bool loadfile(abstractBinFile* file); + bool dumpMemory(unsigned int address, unsigned int count, QString file, const QString &format); QString instance(); private: socexplorerplugin* plugin; diff --git a/src/SocExplorerEngine/plugins/socexplorerplugin.cpp b/src/SocExplorerEngine/plugins/socexplorerplugin.cpp --- a/src/SocExplorerEngine/plugins/socexplorerplugin.cpp +++ b/src/SocExplorerEngine/plugins/socexplorerplugin.cpp @@ -21,7 +21,9 @@ ----------------------------------------------------------------------------*/ #include - +#include +#include +#include int socexplorerplugin::isConnected(){return this->Connected;} @@ -33,44 +35,44 @@ void socexplorerplugin::setBaseAddress(u QString socexplorerplugin::instanceName() { - return this->_instanceName; + return this->_instanceName; } int socexplorerplugin::registermenu(QMenu *menu) { - this->menu = menu->addMenu(this->_instanceName); - this->closeAction = this->menu->addAction(tr("Close plugin")); - QObject::connect(this->closeAction,SIGNAL(triggered()),this,SLOT(closeMe())); - this->ChildsMenu = this->menu->addMenu(QString("Childs")); - for(int i=0;ichilds.count();i++) + this->menu = menu->addMenu(this->_instanceName); + this->closeAction = this->menu->addAction(tr("Close plugin")); + QObject::connect(this->closeAction,SIGNAL(triggered()),this,SLOT(closeMe())); + this->ChildsMenu = this->menu->addMenu(QString("Childs")); + for(int i=0;ichilds.count();i++) { - this->childs.at(i)->registermenu(this->ChildsMenu); + this->childs.at(i)->registermenu(this->ChildsMenu); } - if(this->pyObject!=NULL)emit this->registerObject((QObject*)this->pyObject,this->instanceName()); - return 0; + if(this->pyObject!=NULL)emit this->registerObject((QObject*)this->pyObject,this->instanceName()); + return 0; } void socexplorerplugin::postInstantiationTrigger() { - return; + return; } unsigned int socexplorerplugin::Write(unsigned int *Value, unsigned int count, unsigned int address) { - if(parent!=NULL) + if(parent!=NULL) { - return parent->Write(Value,count,address); + return parent->Write(Value,count,address); } - return 0; + return 0; } unsigned int socexplorerplugin::Read(unsigned int *Value, unsigned int count, unsigned int address) { - if(parent!=NULL) + if(parent!=NULL) { - return parent->Read(Value,count,address); + return parent->Read(Value,count,address); } - return 0; + return 0; } void socexplorerplugin::closeMe(){emit this->closePlugin(this);} @@ -79,13 +81,164 @@ void socexplorerplugin::activate(bool fl void socexplorerplugin::setInstanceName(const QString &newName) { - this->_instanceName = newName; - if(this->menu) - this->menu->setTitle(this->_instanceName); - this->setWindowTitle(newName); + this->_instanceName = newName; + if(this->menu) + this->menu->setTitle(this->_instanceName); + this->setWindowTitle(newName); +} + +bool socexplorerplugin::dumpMemory(unsigned int address, unsigned int count, QString file) +{ + unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int)); + if(buffer!=NULL) + { + this->Read(buffer,count,address); + QFile outfile(file); + if (!outfile.open(QIODevice::ReadWrite | QIODevice::Text)) + return false; + QTextStream out(&outfile); + for(int i=0;(unsigned int)iWrite(buffer,count,address); + free(buffer ); + return true; + } + return false; +} + +bool socexplorerplugin::loadbin(unsigned int address, QString file) +{ + QFile infile(file); + if (!infile.open(QIODevice::ReadOnly)) + return false; + uint32_t* buffer = (uint32_t*)malloc(infile.size()); + if(buffer!=NULL) + { + infile.read((char*)buffer,infile.size()); + for(int i=0;i<(infile.size()/4);i++) + { + buffer[i] = socexplorerBswap32(buffer[i]); + } + this->Write(buffer,infile.size()/4,address); + free(buffer); + return true; + } + return false; + +} + +bool socexplorerplugin::loadfile(abstractBinFile *file) +{ + if(file->isopened()) + { + QList fragments= file->getFragments(); + for(int i=0;isize/4; + // TODO fixme, should be the oposite +#if __BYTE_ORDER == __LITTLE_ENDIAN + if(!file->litleendian) + { + uint32_t* buffer = (uint32_t*)malloc(fragments.at(i)->size); + memcpy(buffer,fragments.at(i)->data,fragments.at(i)->size); + if(buffer!=NULL) + { + for(int l=0;l<(size);l++) + { + buffer[l] = socexplorerBswap32(buffer[l]); + } + this->Write(buffer,size,fragments.at(i)->address); + free(buffer); + } + } + else + { + this->Write((uint32_t*) fragments.at(i)->data,size,fragments.at(i)->address); + } +#elif __BYTE_ORDER == __BIG_ENDIAN + if(file->litleendian) + { + uint32_t* buffer = (uint32_t*)malloc(fragments.at(i)->size); + memcpy(buffer,fragments.at(i)->data,fragments.at(i)->size); + if(buffer!=NULL) + { + for(int l=0;l<(size);l++) + { + buffer[l] = socexplorerBswap32(buffer[l]); + } + this->Write(buffer,size,fragments.at(i)->address); + free(buffer); + } + } + else + { + this->Write((uint32_t*) fragments.at(i)->data,size,fragments.at(i)->address); + } +#endif + } + } + return true; +} + +bool socexplorerplugin::dumpMemory(unsigned int address, unsigned int count, QString file, const QString &format) +{ + unsigned int* buffer = (unsigned int*)malloc(count*sizeof(unsigned int)); + if(buffer!=NULL) + { + this->Read(buffer,count,address); + if(!format.compare("srec",Qt::CaseInsensitive)) + { + //need to convert from in memory endianness to file endianness + //SREC is always big endian +#if __BYTE_ORDER == __LITTLE_ENDIAN + for(int l=0;l<(count);l++) + { + buffer[l] = socexplorerBswap32(buffer[l]); + } +#elif __BYTE_ORDER == __BIG_ENDIAN + +#endif + codeFragment fragment((char*)buffer,count*4,address); + srecFile::toSrec(QList()<<&fragment,file); + } + if(!format.compare("bin",Qt::CaseInsensitive)) + { + //beware this format is not portable from a big endian host to a litle endian one + codeFragment fragment((char*)buffer,count*4,address); + binaryFile::toBinary(QList()<<&fragment,file); + } + if(!format.compare("hexa",Qt::CaseInsensitive)) + { + QFile outfile(file); + if (!outfile.open(QIODevice::ReadWrite | QIODevice::Text)) + return false; + QTextStream out(&outfile); + for(int i=0;(unsigned int)ipyObject = new genericPySysdriver(this); + this->pyObject = new genericPySysdriver(this); } diff --git a/src/SocExplorerEngine/plugins/socexplorerplugin.h b/src/SocExplorerEngine/plugins/socexplorerplugin.h --- a/src/SocExplorerEngine/plugins/socexplorerplugin.h +++ b/src/SocExplorerEngine/plugins/socexplorerplugin.h @@ -43,6 +43,7 @@ #include #include #include +#include #ifndef driver_Name #define driver_Name "Plugin" #endif @@ -161,6 +162,12 @@ public slots: virtual void closeMe(); virtual void activate(bool flag); virtual void setInstanceName(const QString& newName); + + virtual bool dumpMemory(unsigned int address,unsigned int count,QString file); + virtual bool memSet(unsigned int address,int value, unsigned int count); + virtual bool loadbin(unsigned int address,QString file); + virtual bool loadfile(abstractBinFile* file); + virtual bool dumpMemory(unsigned int address,unsigned int count,QString file,const QString& format); protected: void makeGenericPyWrapper(); int BaseAddress; diff --git a/src/common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer0.cpp b/src/common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer0.cpp --- a/src/common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer0.cpp +++ b/src/common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer0.cpp @@ -2,11 +2,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include @@ -17,12 +17,14 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include #include #include @@ -42,6 +44,7 @@ #include #include #include +#include PythonQtShell_ElfFile::~PythonQtShell_ElfFile() { PythonQtPrivate* priv = PythonQt::priv(); @@ -49,10 +52,10 @@ PythonQtShell_ElfFile::~PythonQtShell_El } int PythonQtShell_ElfFile::closeFile() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("closeFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); int returnValue; @@ -71,16 +74,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return ElfFile::closeFile(); } QList PythonQtShell_ElfFile::getFragments() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getFragments"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QList"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QList returnValue; @@ -99,16 +104,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return ElfFile::getFragments(); } bool PythonQtShell_ElfFile::isopened() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("isopened"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); bool returnValue; @@ -127,20 +134,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return ElfFile::isopened(); } -bool PythonQtShell_ElfFile::openFile(const QString& File) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_ElfFile::openFile(const QString& File0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("openFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&File}; + void* args[2] = {NULL, (void*)&File0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -155,20 +164,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return ElfFile::openFile(File); -} -bool PythonQtShell_ElfFile::toBinary(const QString& File) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "toBinary"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + } else { + PyErr_Clear(); + } +} + return ElfFile::openFile(File0); +} +bool PythonQtShell_ElfFile::toBinary(const QString& File0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("toBinary"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&File}; + void* args[2] = {NULL, (void*)&File0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -183,20 +194,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return ElfFile::toBinary(File); -} -bool PythonQtShell_ElfFile::toSrec(const QString& File) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "toSrec"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + } else { + PyErr_Clear(); + } +} + return ElfFile::toBinary(File0); +} +bool PythonQtShell_ElfFile::toSrec(const QString& File0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("toSrec"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&File}; + void* args[2] = {NULL, (void*)&File0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -211,9 +224,11 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return ElfFile::toSrec(File); + } else { + PyErr_Clear(); + } +} + return ElfFile::toSrec(File0); } ElfFile* PythonQtWrapper_ElfFile::new_ElfFile() { @@ -393,11 +408,21 @@ qint64 PythonQtWrapper_ElfFile::getVers return ( theWrappedObject->getVersion()); } +bool PythonQtWrapper_ElfFile::isBigEndian(ElfFile* theWrappedObject) +{ + return ( theWrappedObject->isBigEndian()); +} + bool PythonQtWrapper_ElfFile::static_ElfFile_isElf(const QString& File) { return (ElfFile::isElf(File)); } +bool PythonQtWrapper_ElfFile::isLitleEndian(ElfFile* theWrappedObject) +{ + return ( theWrappedObject->isLitleEndian()); +} + bool PythonQtWrapper_ElfFile::iself(ElfFile* theWrappedObject) { return ( theWrappedObject->iself()); @@ -436,10 +461,10 @@ PythonQtShell_MemSizeWdgt::~PythonQtShel } void PythonQtShell_MemSizeWdgt::actionEvent(QActionEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("actionEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QActionEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -447,16 +472,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::actionEvent(arg__1); } void PythonQtShell_MemSizeWdgt::changeEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("changeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -464,16 +491,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::changeEvent(arg__1); } void PythonQtShell_MemSizeWdgt::childEvent(QChildEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("childEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QChildEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -481,16 +510,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::childEvent(arg__1); } void PythonQtShell_MemSizeWdgt::closeEvent(QCloseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("closeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QCloseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -498,16 +529,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::closeEvent(arg__1); } void PythonQtShell_MemSizeWdgt::contextMenuEvent(QContextMenuEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("contextMenuEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QContextMenuEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -515,16 +548,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::contextMenuEvent(arg__1); } void PythonQtShell_MemSizeWdgt::customEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("customEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -532,16 +567,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::customEvent(arg__1); } int PythonQtShell_MemSizeWdgt::devType() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("devType"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); int returnValue; @@ -560,16 +597,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return MemSizeWdgt::devType(); } void PythonQtShell_MemSizeWdgt::dragEnterEvent(QDragEnterEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragEnterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragEnterEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -577,16 +616,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::dragEnterEvent(arg__1); } void PythonQtShell_MemSizeWdgt::dragLeaveEvent(QDragLeaveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragLeaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -594,16 +635,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::dragLeaveEvent(arg__1); } void PythonQtShell_MemSizeWdgt::dragMoveEvent(QDragMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -611,16 +654,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::dragMoveEvent(arg__1); } void PythonQtShell_MemSizeWdgt::dropEvent(QDropEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dropEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDropEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -628,16 +673,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::dropEvent(arg__1); } void PythonQtShell_MemSizeWdgt::enterEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("enterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -645,16 +692,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::enterEvent(arg__1); } bool PythonQtShell_MemSizeWdgt::event(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("event"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; @@ -673,16 +722,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return MemSizeWdgt::event(arg__1); } bool PythonQtShell_MemSizeWdgt::eventFilter(QObject* arg__1, QEvent* arg__2) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("eventFilter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); bool returnValue; @@ -701,16 +752,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return MemSizeWdgt::eventFilter(arg__1, arg__2); } void PythonQtShell_MemSizeWdgt::focusInEvent(QFocusEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusInEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -718,20 +771,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::focusInEvent(arg__1); } -bool PythonQtShell_MemSizeWdgt::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_MemSizeWdgt::focusNextPrevChild(bool next0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusNextPrevChild"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&next}; + void* args[2] = {NULL, (void*)&next0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -746,16 +801,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return MemSizeWdgt::focusNextPrevChild(next); + } else { + PyErr_Clear(); + } +} + return MemSizeWdgt::focusNextPrevChild(next0); } void PythonQtShell_MemSizeWdgt::focusOutEvent(QFocusEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusOutEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -763,16 +820,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::focusOutEvent(arg__1); } bool PythonQtShell_MemSizeWdgt::hasHeightForWidth() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hasHeightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); bool returnValue; @@ -791,16 +850,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return MemSizeWdgt::hasHeightForWidth(); } int PythonQtShell_MemSizeWdgt::heightForWidth(int arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("heightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -819,16 +880,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return MemSizeWdgt::heightForWidth(arg__1); } void PythonQtShell_MemSizeWdgt::hideEvent(QHideEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hideEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QHideEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -836,33 +899,37 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::hideEvent(arg__1); } -void PythonQtShell_MemSizeWdgt::initPainter(QPainter* painter) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_MemSizeWdgt::initPainter(QPainter* painter0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("initPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&painter}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - MemSizeWdgt::initPainter(painter); + void* args[2] = {NULL, (void*)&painter0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + MemSizeWdgt::initPainter(painter0); } void PythonQtShell_MemSizeWdgt::inputMethodEvent(QInputMethodEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QInputMethodEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -870,16 +937,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::inputMethodEvent(arg__1); } QVariant PythonQtShell_MemSizeWdgt::inputMethodQuery(Qt::InputMethodQuery arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodQuery"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QVariant returnValue; @@ -898,16 +967,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return MemSizeWdgt::inputMethodQuery(arg__1); } void PythonQtShell_MemSizeWdgt::keyPressEvent(QKeyEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyPressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -915,16 +986,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::keyPressEvent(arg__1); } void PythonQtShell_MemSizeWdgt::keyReleaseEvent(QKeyEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -932,16 +1005,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::keyReleaseEvent(arg__1); } void PythonQtShell_MemSizeWdgt::leaveEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("leaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -949,16 +1024,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::leaveEvent(arg__1); } int PythonQtShell_MemSizeWdgt::metric(QPaintDevice::PaintDeviceMetric arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("metric"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -977,16 +1054,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return MemSizeWdgt::metric(arg__1); } QSize PythonQtShell_MemSizeWdgt::minimumSizeHint() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getMinimumSizeHint"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QSize"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QSize returnValue; @@ -1005,16 +1084,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return MemSizeWdgt::minimumSizeHint(); } void PythonQtShell_MemSizeWdgt::mouseDoubleClickEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseDoubleClickEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1022,16 +1103,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::mouseDoubleClickEvent(arg__1); } void PythonQtShell_MemSizeWdgt::mouseMoveEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1039,16 +1122,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::mouseMoveEvent(arg__1); } void PythonQtShell_MemSizeWdgt::mousePressEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mousePressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1056,16 +1141,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::mousePressEvent(arg__1); } void PythonQtShell_MemSizeWdgt::mouseReleaseEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1073,16 +1160,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::mouseReleaseEvent(arg__1); } void PythonQtShell_MemSizeWdgt::moveEvent(QMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("moveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1090,20 +1179,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::moveEvent(arg__1); } -bool PythonQtShell_MemSizeWdgt::nativeEvent(const QByteArray& eventType, void* message, long* result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_MemSizeWdgt::nativeEvent(const QByteArray& eventType0, void* message1, long* result2) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("nativeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); bool returnValue; - void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -1118,16 +1209,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return MemSizeWdgt::nativeEvent(eventType, message, result); + } else { + PyErr_Clear(); + } +} + return MemSizeWdgt::nativeEvent(eventType0, message1, result2); } QPaintEngine* PythonQtShell_MemSizeWdgt::paintEngine() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEngine"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintEngine*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPaintEngine* returnValue; @@ -1146,16 +1239,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return MemSizeWdgt::paintEngine(); } void PythonQtShell_MemSizeWdgt::paintEvent(QPaintEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPaintEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1163,20 +1258,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::paintEvent(arg__1); } -QPaintDevice* PythonQtShell_MemSizeWdgt::redirected(QPoint* offset) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +QPaintDevice* PythonQtShell_MemSizeWdgt::redirected(QPoint* offset0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("redirected"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QPaintDevice* returnValue; - void* args[2] = {NULL, (void*)&offset}; + void* args[2] = {NULL, (void*)&offset0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -1191,16 +1288,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return MemSizeWdgt::redirected(offset); + } else { + PyErr_Clear(); + } +} + return MemSizeWdgt::redirected(offset0); } void PythonQtShell_MemSizeWdgt::resizeEvent(QResizeEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("resizeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QResizeEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1208,16 +1307,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::resizeEvent(arg__1); } QPainter* PythonQtShell_MemSizeWdgt::sharedPainter() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("sharedPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPainter* returnValue; @@ -1236,16 +1337,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return MemSizeWdgt::sharedPainter(); } void PythonQtShell_MemSizeWdgt::showEvent(QShowEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("showEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QShowEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1253,16 +1356,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::showEvent(arg__1); } QSize PythonQtShell_MemSizeWdgt::sizeHint() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getSizeHint"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QSize"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QSize returnValue; @@ -1281,16 +1386,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return MemSizeWdgt::sizeHint(); } void PythonQtShell_MemSizeWdgt::tabletEvent(QTabletEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("tabletEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTabletEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1298,16 +1405,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::tabletEvent(arg__1); } void PythonQtShell_MemSizeWdgt::timerEvent(QTimerEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("timerEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTimerEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1315,16 +1424,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::timerEvent(arg__1); } void PythonQtShell_MemSizeWdgt::wheelEvent(QWheelEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("wheelEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QWheelEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1332,6 +1443,8 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } MemSizeWdgt::wheelEvent(arg__1); @@ -1372,10 +1485,10 @@ PythonQtShell_QHexEdit::~PythonQtShell_Q } void PythonQtShell_QHexEdit::actionEvent(QActionEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("actionEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QActionEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1383,16 +1496,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::actionEvent(arg__1); } void PythonQtShell_QHexEdit::changeEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("changeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1400,16 +1515,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::changeEvent(arg__1); } void PythonQtShell_QHexEdit::childEvent(QChildEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("childEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QChildEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1417,16 +1534,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::childEvent(arg__1); } void PythonQtShell_QHexEdit::closeEvent(QCloseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("closeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QCloseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1434,16 +1553,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::closeEvent(arg__1); } void PythonQtShell_QHexEdit::contextMenuEvent(QContextMenuEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("contextMenuEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QContextMenuEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1451,16 +1572,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::contextMenuEvent(arg__1); } void PythonQtShell_QHexEdit::customEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("customEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1468,16 +1591,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::customEvent(arg__1); } int PythonQtShell_QHexEdit::devType() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("devType"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); int returnValue; @@ -1496,16 +1621,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexEdit::devType(); } void PythonQtShell_QHexEdit::dragEnterEvent(QDragEnterEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragEnterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragEnterEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1513,16 +1640,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::dragEnterEvent(arg__1); } void PythonQtShell_QHexEdit::dragLeaveEvent(QDragLeaveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragLeaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1530,16 +1659,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::dragLeaveEvent(arg__1); } void PythonQtShell_QHexEdit::dragMoveEvent(QDragMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1547,16 +1678,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::dragMoveEvent(arg__1); } void PythonQtShell_QHexEdit::dropEvent(QDropEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dropEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDropEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1564,16 +1697,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::dropEvent(arg__1); } void PythonQtShell_QHexEdit::enterEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("enterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1581,16 +1716,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::enterEvent(arg__1); } bool PythonQtShell_QHexEdit::event(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("event"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; @@ -1609,16 +1746,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexEdit::event(arg__1); } bool PythonQtShell_QHexEdit::eventFilter(QObject* arg__1, QEvent* arg__2) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("eventFilter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); bool returnValue; @@ -1637,16 +1776,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexEdit::eventFilter(arg__1, arg__2); } void PythonQtShell_QHexEdit::focusInEvent(QFocusEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusInEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1654,20 +1795,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::focusInEvent(arg__1); } -bool PythonQtShell_QHexEdit::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_QHexEdit::focusNextPrevChild(bool next0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusNextPrevChild"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&next}; + void* args[2] = {NULL, (void*)&next0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -1682,16 +1825,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return QHexEdit::focusNextPrevChild(next); + } else { + PyErr_Clear(); + } +} + return QHexEdit::focusNextPrevChild(next0); } void PythonQtShell_QHexEdit::focusOutEvent(QFocusEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusOutEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1699,16 +1844,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::focusOutEvent(arg__1); } bool PythonQtShell_QHexEdit::hasHeightForWidth() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hasHeightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); bool returnValue; @@ -1727,16 +1874,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexEdit::hasHeightForWidth(); } int PythonQtShell_QHexEdit::heightForWidth(int arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("heightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -1755,16 +1904,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexEdit::heightForWidth(arg__1); } void PythonQtShell_QHexEdit::hideEvent(QHideEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hideEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QHideEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1772,33 +1923,37 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::hideEvent(arg__1); } -void PythonQtShell_QHexEdit::initPainter(QPainter* painter) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_QHexEdit::initPainter(QPainter* painter0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("initPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&painter}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexEdit::initPainter(painter); + void* args[2] = {NULL, (void*)&painter0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexEdit::initPainter(painter0); } void PythonQtShell_QHexEdit::inputMethodEvent(QInputMethodEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QInputMethodEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1806,16 +1961,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::inputMethodEvent(arg__1); } QVariant PythonQtShell_QHexEdit::inputMethodQuery(Qt::InputMethodQuery arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodQuery"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QVariant returnValue; @@ -1834,16 +1991,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexEdit::inputMethodQuery(arg__1); } void PythonQtShell_QHexEdit::keyPressEvent(QKeyEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyPressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1851,16 +2010,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::keyPressEvent(arg__1); } void PythonQtShell_QHexEdit::keyReleaseEvent(QKeyEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1868,16 +2029,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::keyReleaseEvent(arg__1); } void PythonQtShell_QHexEdit::leaveEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("leaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1885,16 +2048,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::leaveEvent(arg__1); } int PythonQtShell_QHexEdit::metric(QPaintDevice::PaintDeviceMetric arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("metric"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -1913,16 +2078,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexEdit::metric(arg__1); } void PythonQtShell_QHexEdit::mouseDoubleClickEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseDoubleClickEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1930,16 +2097,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::mouseDoubleClickEvent(arg__1); } void PythonQtShell_QHexEdit::mouseMoveEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1947,16 +2116,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::mouseMoveEvent(arg__1); } void PythonQtShell_QHexEdit::mousePressEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mousePressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1964,16 +2135,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::mousePressEvent(arg__1); } void PythonQtShell_QHexEdit::mouseReleaseEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1981,16 +2154,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::mouseReleaseEvent(arg__1); } void PythonQtShell_QHexEdit::moveEvent(QMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("moveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -1998,20 +2173,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::moveEvent(arg__1); } -bool PythonQtShell_QHexEdit::nativeEvent(const QByteArray& eventType, void* message, long* result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_QHexEdit::nativeEvent(const QByteArray& eventType0, void* message1, long* result2) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("nativeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); bool returnValue; - void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -2026,16 +2203,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return QHexEdit::nativeEvent(eventType, message, result); + } else { + PyErr_Clear(); + } +} + return QHexEdit::nativeEvent(eventType0, message1, result2); } QPaintEngine* PythonQtShell_QHexEdit::paintEngine() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEngine"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintEngine*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPaintEngine* returnValue; @@ -2054,16 +2233,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexEdit::paintEngine(); } void PythonQtShell_QHexEdit::paintEvent(QPaintEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPaintEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2071,20 +2252,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::paintEvent(arg__1); } -QPaintDevice* PythonQtShell_QHexEdit::redirected(QPoint* offset) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +QPaintDevice* PythonQtShell_QHexEdit::redirected(QPoint* offset0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("redirected"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QPaintDevice* returnValue; - void* args[2] = {NULL, (void*)&offset}; + void* args[2] = {NULL, (void*)&offset0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -2099,16 +2282,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return QHexEdit::redirected(offset); + } else { + PyErr_Clear(); + } +} + return QHexEdit::redirected(offset0); } void PythonQtShell_QHexEdit::resizeEvent(QResizeEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("resizeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QResizeEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2116,50 +2301,56 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::resizeEvent(arg__1); } -void PythonQtShell_QHexEdit::scrollContentsBy(int dx, int dy) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "scrollContentsBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_QHexEdit::scrollContentsBy(int dx0, int dy1) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("scrollContentsBy"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "int" , "int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); - void* args[3] = {NULL, (void*)&dx, (void*)&dy}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexEdit::scrollContentsBy(dx, dy); -} -void PythonQtShell_QHexEdit::setupViewport(QWidget* viewport) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setupViewport"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + void* args[3] = {NULL, (void*)&dx0, (void*)&dy1}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexEdit::scrollContentsBy(dx0, dy1); +} +void PythonQtShell_QHexEdit::setupViewport(QWidget* viewport0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("setupViewport"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QWidget*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&viewport}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexEdit::setupViewport(viewport); + void* args[2] = {NULL, (void*)&viewport0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexEdit::setupViewport(viewport0); } QPainter* PythonQtShell_QHexEdit::sharedPainter() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("sharedPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPainter* returnValue; @@ -2178,16 +2369,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexEdit::sharedPainter(); } void PythonQtShell_QHexEdit::showEvent(QShowEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("showEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QShowEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2195,16 +2388,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::showEvent(arg__1); } void PythonQtShell_QHexEdit::tabletEvent(QTabletEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("tabletEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTabletEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2212,16 +2407,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::tabletEvent(arg__1); } void PythonQtShell_QHexEdit::timerEvent(QTimerEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("timerEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTimerEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2229,16 +2426,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::timerEvent(arg__1); } bool PythonQtShell_QHexEdit::viewportEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("viewportEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; @@ -2257,16 +2456,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexEdit::viewportEvent(arg__1); } QSize PythonQtShell_QHexEdit::viewportSizeHint() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "viewportSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("viewportSizeHint"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QSize"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QSize returnValue; @@ -2285,16 +2486,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexEdit::viewportSizeHint(); } void PythonQtShell_QHexEdit::wheelEvent(QWheelEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("wheelEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QWheelEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2302,6 +2505,8 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexEdit::wheelEvent(arg__1); @@ -2473,10 +2678,10 @@ PythonQtShell_QHexSpinBox::~PythonQtShel } void PythonQtShell_QHexSpinBox::actionEvent(QActionEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("actionEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QActionEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2484,33 +2689,37 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::actionEvent(arg__1); } -void PythonQtShell_QHexSpinBox::changeEvent(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_QHexSpinBox::changeEvent(QEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("changeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::changeEvent(event); + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::changeEvent(event0); } void PythonQtShell_QHexSpinBox::childEvent(QChildEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("childEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QChildEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2518,16 +2727,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::childEvent(arg__1); } void PythonQtShell_QHexSpinBox::clear() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "clear"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("clear"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={""}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); void* args[1] = {NULL}; @@ -2535,50 +2746,56 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::clear(); } -void PythonQtShell_QHexSpinBox::closeEvent(QCloseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_QHexSpinBox::closeEvent(QCloseEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("closeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QCloseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::closeEvent(event); -} -void PythonQtShell_QHexSpinBox::contextMenuEvent(QContextMenuEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::closeEvent(event0); +} +void PythonQtShell_QHexSpinBox::contextMenuEvent(QContextMenuEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("contextMenuEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QContextMenuEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::contextMenuEvent(event); + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::contextMenuEvent(event0); } void PythonQtShell_QHexSpinBox::customEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("customEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2586,16 +2803,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::customEvent(arg__1); } int PythonQtShell_QHexSpinBox::devType() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("devType"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); int returnValue; @@ -2614,16 +2833,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexSpinBox::devType(); } void PythonQtShell_QHexSpinBox::dragEnterEvent(QDragEnterEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragEnterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragEnterEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2631,16 +2852,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::dragEnterEvent(arg__1); } void PythonQtShell_QHexSpinBox::dragLeaveEvent(QDragLeaveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragLeaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2648,16 +2871,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::dragLeaveEvent(arg__1); } void PythonQtShell_QHexSpinBox::dragMoveEvent(QDragMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2665,16 +2890,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::dragMoveEvent(arg__1); } void PythonQtShell_QHexSpinBox::dropEvent(QDropEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dropEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDropEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2682,16 +2909,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::dropEvent(arg__1); } void PythonQtShell_QHexSpinBox::enterEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("enterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2699,20 +2928,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::enterEvent(arg__1); } -bool PythonQtShell_QHexSpinBox::event(QEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_QHexSpinBox::event(QEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("event"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&event}; + void* args[2] = {NULL, (void*)&event0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -2727,16 +2958,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return QHexSpinBox::event(event); + } else { + PyErr_Clear(); + } +} + return QHexSpinBox::event(event0); } bool PythonQtShell_QHexSpinBox::eventFilter(QObject* arg__1, QEvent* arg__2) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("eventFilter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); bool returnValue; @@ -2755,54 +2988,60 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexSpinBox::eventFilter(arg__1, arg__2); } -void PythonQtShell_QHexSpinBox::fixup(QString& str) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "fixup"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_QHexSpinBox::fixup(QString& str0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("fixup"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&str}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::fixup(str); -} -void PythonQtShell_QHexSpinBox::focusInEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + void* args[2] = {NULL, (void*)&str0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::fixup(str0); +} +void PythonQtShell_QHexSpinBox::focusInEvent(QFocusEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusInEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::focusInEvent(event); -} -bool PythonQtShell_QHexSpinBox::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::focusInEvent(event0); +} +bool PythonQtShell_QHexSpinBox::focusNextPrevChild(bool next0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusNextPrevChild"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&next}; + void* args[2] = {NULL, (void*)&next0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -2817,33 +3056,37 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return QHexSpinBox::focusNextPrevChild(next); -} -void PythonQtShell_QHexSpinBox::focusOutEvent(QFocusEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + } else { + PyErr_Clear(); + } +} + return QHexSpinBox::focusNextPrevChild(next0); +} +void PythonQtShell_QHexSpinBox::focusOutEvent(QFocusEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusOutEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::focusOutEvent(event); + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::focusOutEvent(event0); } bool PythonQtShell_QHexSpinBox::hasHeightForWidth() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hasHeightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); bool returnValue; @@ -2862,16 +3105,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexSpinBox::hasHeightForWidth(); } int PythonQtShell_QHexSpinBox::heightForWidth(int arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("heightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -2890,50 +3135,56 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexSpinBox::heightForWidth(arg__1); } -void PythonQtShell_QHexSpinBox::hideEvent(QHideEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_QHexSpinBox::hideEvent(QHideEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hideEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QHideEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::hideEvent(event); -} -void PythonQtShell_QHexSpinBox::initPainter(QPainter* painter) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::hideEvent(event0); +} +void PythonQtShell_QHexSpinBox::initPainter(QPainter* painter0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("initPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&painter}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::initPainter(painter); + void* args[2] = {NULL, (void*)&painter0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::initPainter(painter0); } void PythonQtShell_QHexSpinBox::inputMethodEvent(QInputMethodEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QInputMethodEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -2941,16 +3192,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::inputMethodEvent(arg__1); } QVariant PythonQtShell_QHexSpinBox::inputMethodQuery(Qt::InputMethodQuery arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodQuery"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QVariant returnValue; @@ -2969,50 +3222,56 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexSpinBox::inputMethodQuery(arg__1); } -void PythonQtShell_QHexSpinBox::keyPressEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_QHexSpinBox::keyPressEvent(QKeyEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyPressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::keyPressEvent(event); -} -void PythonQtShell_QHexSpinBox::keyReleaseEvent(QKeyEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::keyPressEvent(event0); +} +void PythonQtShell_QHexSpinBox::keyReleaseEvent(QKeyEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::keyReleaseEvent(event); + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::keyReleaseEvent(event0); } void PythonQtShell_QHexSpinBox::leaveEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("leaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3020,16 +3279,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::leaveEvent(arg__1); } int PythonQtShell_QHexSpinBox::metric(QPaintDevice::PaintDeviceMetric arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("metric"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -3048,16 +3309,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexSpinBox::metric(arg__1); } void PythonQtShell_QHexSpinBox::mouseDoubleClickEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseDoubleClickEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3065,67 +3328,75 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::mouseDoubleClickEvent(arg__1); } -void PythonQtShell_QHexSpinBox::mouseMoveEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_QHexSpinBox::mouseMoveEvent(QMouseEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::mouseMoveEvent(event); -} -void PythonQtShell_QHexSpinBox::mousePressEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::mouseMoveEvent(event0); +} +void PythonQtShell_QHexSpinBox::mousePressEvent(QMouseEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mousePressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::mousePressEvent(event); -} -void PythonQtShell_QHexSpinBox::mouseReleaseEvent(QMouseEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::mousePressEvent(event0); +} +void PythonQtShell_QHexSpinBox::mouseReleaseEvent(QMouseEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::mouseReleaseEvent(event); + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::mouseReleaseEvent(event0); } void PythonQtShell_QHexSpinBox::moveEvent(QMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("moveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3133,20 +3404,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::moveEvent(arg__1); } -bool PythonQtShell_QHexSpinBox::nativeEvent(const QByteArray& eventType, void* message, long* result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_QHexSpinBox::nativeEvent(const QByteArray& eventType0, void* message1, long* result2) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("nativeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); bool returnValue; - void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -3161,16 +3434,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return QHexSpinBox::nativeEvent(eventType, message, result); + } else { + PyErr_Clear(); + } +} + return QHexSpinBox::nativeEvent(eventType0, message1, result2); } QPaintEngine* PythonQtShell_QHexSpinBox::paintEngine() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEngine"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintEngine*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPaintEngine* returnValue; @@ -3189,37 +3464,41 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexSpinBox::paintEngine(); } -void PythonQtShell_QHexSpinBox::paintEvent(QPaintEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_QHexSpinBox::paintEvent(QPaintEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPaintEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::paintEvent(event); -} -QPaintDevice* PythonQtShell_QHexSpinBox::redirected(QPoint* offset) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::paintEvent(event0); +} +QPaintDevice* PythonQtShell_QHexSpinBox::redirected(QPoint* offset0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("redirected"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QPaintDevice* returnValue; - void* args[2] = {NULL, (void*)&offset}; + void* args[2] = {NULL, (void*)&offset0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -3234,33 +3513,37 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return QHexSpinBox::redirected(offset); -} -void PythonQtShell_QHexSpinBox::resizeEvent(QResizeEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + } else { + PyErr_Clear(); + } +} + return QHexSpinBox::redirected(offset0); +} +void PythonQtShell_QHexSpinBox::resizeEvent(QResizeEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("resizeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QResizeEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::resizeEvent(event); + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::resizeEvent(event0); } QPainter* PythonQtShell_QHexSpinBox::sharedPainter() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("sharedPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPainter* returnValue; @@ -3279,50 +3562,56 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexSpinBox::sharedPainter(); } -void PythonQtShell_QHexSpinBox::showEvent(QShowEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_QHexSpinBox::showEvent(QShowEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("showEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QShowEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::showEvent(event); -} -void PythonQtShell_QHexSpinBox::stepBy(int steps) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepBy"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::showEvent(event0); +} +void PythonQtShell_QHexSpinBox::stepBy(int steps0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("stepBy"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&steps}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::stepBy(steps); + void* args[2] = {NULL, (void*)&steps0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::stepBy(steps0); } QAbstractSpinBox::StepEnabled PythonQtShell_QHexSpinBox::stepEnabled() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "stepEnabled"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("stepEnabled"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QAbstractSpinBox::StepEnabled"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QAbstractSpinBox::StepEnabled returnValue; @@ -3341,16 +3630,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QHexSpinBox::stepEnabled(); } void PythonQtShell_QHexSpinBox::tabletEvent(QTabletEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("tabletEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTabletEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3358,20 +3649,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } QHexSpinBox::tabletEvent(arg__1); } -QString PythonQtShell_QHexSpinBox::textFromValue(int value) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "textFromValue"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +QString PythonQtShell_QHexSpinBox::textFromValue(int value0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("textFromValue"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QString" , "int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QString returnValue; - void* args[2] = {NULL, (void*)&value}; + void* args[2] = {NULL, (void*)&value0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -3386,37 +3679,41 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return QHexSpinBox::textFromValue(value); -} -void PythonQtShell_QHexSpinBox::timerEvent(QTimerEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + } else { + PyErr_Clear(); + } +} + return QHexSpinBox::textFromValue(value0); +} +void PythonQtShell_QHexSpinBox::timerEvent(QTimerEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("timerEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTimerEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::timerEvent(event); -} -QValidator::State PythonQtShell_QHexSpinBox::validate(QString& input, int& pos) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "validate"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::timerEvent(event0); +} +QValidator::State PythonQtShell_QHexSpinBox::validate(QString& input0, int& pos1) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("validate"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QValidator::State" , "QString&" , "int&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); QValidator::State returnValue; - void* args[3] = {NULL, (void*)&input, (void*)&pos}; + void* args[3] = {NULL, (void*)&input0, (void*)&pos1}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -3431,20 +3728,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return QHexSpinBox::validate(input, pos); -} -int PythonQtShell_QHexSpinBox::valueFromText(const QString& text) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "valueFromText"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + } else { + PyErr_Clear(); + } +} + return QHexSpinBox::validate(input0, pos1); +} +int PythonQtShell_QHexSpinBox::valueFromText(const QString& text0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("valueFromText"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; - void* args[2] = {NULL, (void*)&text}; + void* args[2] = {NULL, (void*)&text0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -3459,26 +3758,30 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return QHexSpinBox::valueFromText(text); -} -void PythonQtShell_QHexSpinBox::wheelEvent(QWheelEvent* event) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + } else { + PyErr_Clear(); + } +} + return QHexSpinBox::valueFromText(text0); +} +void PythonQtShell_QHexSpinBox::wheelEvent(QWheelEvent* event0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("wheelEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QWheelEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&event}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - QHexSpinBox::wheelEvent(event); + void* args[2] = {NULL, (void*)&event0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + QHexSpinBox::wheelEvent(event0); } QHexSpinBox* PythonQtWrapper_QHexSpinBox::new_QHexSpinBox(QWidget* parent) { @@ -3512,10 +3815,10 @@ PythonQtShell_SocExplorerPlot::~PythonQt } void PythonQtShell_SocExplorerPlot::actionEvent(QActionEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("actionEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QActionEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3523,16 +3826,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::actionEvent(arg__1); } void PythonQtShell_SocExplorerPlot::changeEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("changeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3540,16 +3845,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::changeEvent(arg__1); } void PythonQtShell_SocExplorerPlot::childEvent(QChildEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("childEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QChildEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3557,16 +3864,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::childEvent(arg__1); } void PythonQtShell_SocExplorerPlot::closeEvent(QCloseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("closeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QCloseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3574,16 +3883,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::closeEvent(arg__1); } void PythonQtShell_SocExplorerPlot::contextMenuEvent(QContextMenuEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("contextMenuEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QContextMenuEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3591,16 +3902,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::contextMenuEvent(arg__1); } void PythonQtShell_SocExplorerPlot::customEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("customEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3608,16 +3921,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::customEvent(arg__1); } int PythonQtShell_SocExplorerPlot::devType() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("devType"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); int returnValue; @@ -3636,16 +3951,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return SocExplorerPlot::devType(); } void PythonQtShell_SocExplorerPlot::dragEnterEvent(QDragEnterEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragEnterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragEnterEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3653,16 +3970,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::dragEnterEvent(arg__1); } void PythonQtShell_SocExplorerPlot::dragLeaveEvent(QDragLeaveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragLeaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3670,16 +3989,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::dragLeaveEvent(arg__1); } void PythonQtShell_SocExplorerPlot::dragMoveEvent(QDragMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3687,16 +4008,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::dragMoveEvent(arg__1); } void PythonQtShell_SocExplorerPlot::dropEvent(QDropEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dropEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDropEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3704,16 +4027,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::dropEvent(arg__1); } void PythonQtShell_SocExplorerPlot::enterEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("enterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3721,16 +4046,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::enterEvent(arg__1); } bool PythonQtShell_SocExplorerPlot::event(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("event"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; @@ -3749,16 +4076,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return SocExplorerPlot::event(arg__1); } bool PythonQtShell_SocExplorerPlot::eventFilter(QObject* arg__1, QEvent* arg__2) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("eventFilter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); bool returnValue; @@ -3777,16 +4106,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return SocExplorerPlot::eventFilter(arg__1, arg__2); } void PythonQtShell_SocExplorerPlot::focusInEvent(QFocusEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusInEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3794,20 +4125,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::focusInEvent(arg__1); } -bool PythonQtShell_SocExplorerPlot::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_SocExplorerPlot::focusNextPrevChild(bool next0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusNextPrevChild"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&next}; + void* args[2] = {NULL, (void*)&next0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -3822,16 +4155,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return SocExplorerPlot::focusNextPrevChild(next); + } else { + PyErr_Clear(); + } +} + return SocExplorerPlot::focusNextPrevChild(next0); } void PythonQtShell_SocExplorerPlot::focusOutEvent(QFocusEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusOutEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3839,16 +4174,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::focusOutEvent(arg__1); } bool PythonQtShell_SocExplorerPlot::hasHeightForWidth() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hasHeightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); bool returnValue; @@ -3867,16 +4204,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return SocExplorerPlot::hasHeightForWidth(); } int PythonQtShell_SocExplorerPlot::heightForWidth(int arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("heightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -3895,16 +4234,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return SocExplorerPlot::heightForWidth(arg__1); } void PythonQtShell_SocExplorerPlot::hideEvent(QHideEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hideEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QHideEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3912,33 +4253,37 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::hideEvent(arg__1); } -void PythonQtShell_SocExplorerPlot::initPainter(QPainter* painter) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_SocExplorerPlot::initPainter(QPainter* painter0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("initPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&painter}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - SocExplorerPlot::initPainter(painter); + void* args[2] = {NULL, (void*)&painter0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + SocExplorerPlot::initPainter(painter0); } void PythonQtShell_SocExplorerPlot::inputMethodEvent(QInputMethodEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QInputMethodEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3946,16 +4291,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::inputMethodEvent(arg__1); } QVariant PythonQtShell_SocExplorerPlot::inputMethodQuery(Qt::InputMethodQuery arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodQuery"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QVariant returnValue; @@ -3974,16 +4321,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return SocExplorerPlot::inputMethodQuery(arg__1); } void PythonQtShell_SocExplorerPlot::keyPressEvent(QKeyEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyPressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -3991,16 +4340,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::keyPressEvent(arg__1); } void PythonQtShell_SocExplorerPlot::keyReleaseEvent(QKeyEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4008,16 +4359,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::keyReleaseEvent(arg__1); } void PythonQtShell_SocExplorerPlot::leaveEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("leaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4025,16 +4378,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::leaveEvent(arg__1); } int PythonQtShell_SocExplorerPlot::metric(QPaintDevice::PaintDeviceMetric arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("metric"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -4053,16 +4408,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return SocExplorerPlot::metric(arg__1); } QSize PythonQtShell_SocExplorerPlot::minimumSizeHint() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getMinimumSizeHint"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QSize"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QSize returnValue; @@ -4081,16 +4438,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return SocExplorerPlot::minimumSizeHint(); } void PythonQtShell_SocExplorerPlot::mouseDoubleClickEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseDoubleClickEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4098,16 +4457,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::mouseDoubleClickEvent(arg__1); } void PythonQtShell_SocExplorerPlot::mouseMoveEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4115,16 +4476,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::mouseMoveEvent(arg__1); } void PythonQtShell_SocExplorerPlot::mousePressEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mousePressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4132,16 +4495,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::mousePressEvent(arg__1); } void PythonQtShell_SocExplorerPlot::mouseReleaseEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4149,16 +4514,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::mouseReleaseEvent(arg__1); } void PythonQtShell_SocExplorerPlot::moveEvent(QMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("moveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4166,20 +4533,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::moveEvent(arg__1); } -bool PythonQtShell_SocExplorerPlot::nativeEvent(const QByteArray& eventType, void* message, long* result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_SocExplorerPlot::nativeEvent(const QByteArray& eventType0, void* message1, long* result2) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("nativeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); bool returnValue; - void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -4194,16 +4563,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return SocExplorerPlot::nativeEvent(eventType, message, result); + } else { + PyErr_Clear(); + } +} + return SocExplorerPlot::nativeEvent(eventType0, message1, result2); } QPaintEngine* PythonQtShell_SocExplorerPlot::paintEngine() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEngine"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintEngine*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPaintEngine* returnValue; @@ -4222,16 +4593,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return SocExplorerPlot::paintEngine(); } void PythonQtShell_SocExplorerPlot::paintEvent(QPaintEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPaintEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4239,20 +4612,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::paintEvent(arg__1); } -QPaintDevice* PythonQtShell_SocExplorerPlot::redirected(QPoint* offset) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +QPaintDevice* PythonQtShell_SocExplorerPlot::redirected(QPoint* offset0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("redirected"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QPaintDevice* returnValue; - void* args[2] = {NULL, (void*)&offset}; + void* args[2] = {NULL, (void*)&offset0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -4267,16 +4642,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return SocExplorerPlot::redirected(offset); + } else { + PyErr_Clear(); + } +} + return SocExplorerPlot::redirected(offset0); } void PythonQtShell_SocExplorerPlot::resizeEvent(QResizeEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("resizeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QResizeEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4284,16 +4661,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::resizeEvent(arg__1); } QPainter* PythonQtShell_SocExplorerPlot::sharedPainter() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("sharedPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPainter* returnValue; @@ -4312,16 +4691,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return SocExplorerPlot::sharedPainter(); } void PythonQtShell_SocExplorerPlot::showEvent(QShowEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("showEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QShowEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4329,16 +4710,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::showEvent(arg__1); } QSize PythonQtShell_SocExplorerPlot::sizeHint() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getSizeHint"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QSize"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QSize returnValue; @@ -4357,16 +4740,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return SocExplorerPlot::sizeHint(); } void PythonQtShell_SocExplorerPlot::tabletEvent(QTabletEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("tabletEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTabletEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4374,16 +4759,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::tabletEvent(arg__1); } void PythonQtShell_SocExplorerPlot::timerEvent(QTimerEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("timerEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTimerEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4391,16 +4778,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::timerEvent(arg__1); } void PythonQtShell_SocExplorerPlot::wheelEvent(QWheelEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("wheelEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QWheelEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4408,6 +4797,8 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } SocExplorerPlot::wheelEvent(arg__1); @@ -4549,10 +4940,10 @@ PythonQtShell_TCP_Terminal_Client::~Pyth } void PythonQtShell_TCP_Terminal_Client::childEvent(QChildEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("childEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QChildEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4560,16 +4951,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } TCP_Terminal_Client::childEvent(arg__1); } void PythonQtShell_TCP_Terminal_Client::customEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("customEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4577,16 +4970,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } TCP_Terminal_Client::customEvent(arg__1); } bool PythonQtShell_TCP_Terminal_Client::event(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("event"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; @@ -4605,16 +5000,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return TCP_Terminal_Client::event(arg__1); } bool PythonQtShell_TCP_Terminal_Client::eventFilter(QObject* arg__1, QEvent* arg__2) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("eventFilter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); bool returnValue; @@ -4633,16 +5030,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return TCP_Terminal_Client::eventFilter(arg__1, arg__2); } void PythonQtShell_TCP_Terminal_Client::timerEvent(QTimerEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("timerEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTimerEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4650,6 +5049,8 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } TCP_Terminal_Client::timerEvent(arg__1); @@ -4802,10 +5203,10 @@ PythonQtShell_abstractBinFile::~PythonQt } void PythonQtShell_abstractBinFile::childEvent(QChildEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("childEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QChildEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4813,16 +5214,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFile::childEvent(arg__1); } int PythonQtShell_abstractBinFile::closeFile() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("closeFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); int returnValue; @@ -4841,16 +5244,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return int(); } void PythonQtShell_abstractBinFile::customEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("customEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -4858,16 +5263,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFile::customEvent(arg__1); } bool PythonQtShell_abstractBinFile::event(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("event"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; @@ -4886,16 +5293,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFile::event(arg__1); } bool PythonQtShell_abstractBinFile::eventFilter(QObject* arg__1, QEvent* arg__2) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("eventFilter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); bool returnValue; @@ -4914,16 +5323,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFile::eventFilter(arg__1, arg__2); } QList PythonQtShell_abstractBinFile::getFragments() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getFragments"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QList"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QList returnValue; @@ -4942,16 +5353,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return QList(); } bool PythonQtShell_abstractBinFile::isopened() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("isopened"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); bool returnValue; @@ -4970,20 +5383,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return bool(); } -bool PythonQtShell_abstractBinFile::openFile(const QString& File) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_abstractBinFile::openFile(const QString& File0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("openFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&File}; + void* args[2] = {NULL, (void*)&File0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -4998,16 +5413,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return bool(); } void PythonQtShell_abstractBinFile::timerEvent(QTimerEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("timerEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTimerEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5015,20 +5432,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFile::timerEvent(arg__1); } -bool PythonQtShell_abstractBinFile::toBinary(const QString& File) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "toBinary"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_abstractBinFile::toBinary(const QString& File0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("toBinary"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&File}; + void* args[2] = {NULL, (void*)&File0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -5043,20 +5462,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return bool(); } -bool PythonQtShell_abstractBinFile::toSrec(const QString& File) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "toSrec"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_abstractBinFile::toSrec(const QString& File0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("toSrec"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&File}; + void* args[2] = {NULL, (void*)&File0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -5071,6 +5492,8 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return bool(); @@ -5079,6 +5502,36 @@ abstractBinFile* PythonQtWrapper_abstrac { return new PythonQtShell_abstractBinFile(); } +int PythonQtWrapper_abstractBinFile::closeFile(abstractBinFile* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_abstractBinFile*)theWrappedObject)->promoted_closeFile()); +} + +QList PythonQtWrapper_abstractBinFile::getFragments(abstractBinFile* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_abstractBinFile*)theWrappedObject)->promoted_getFragments()); +} + +bool PythonQtWrapper_abstractBinFile::isopened(abstractBinFile* theWrappedObject) +{ + return ( ((PythonQtPublicPromoter_abstractBinFile*)theWrappedObject)->promoted_isopened()); +} + +bool PythonQtWrapper_abstractBinFile::openFile(abstractBinFile* theWrappedObject, const QString& File) +{ + return ( ((PythonQtPublicPromoter_abstractBinFile*)theWrappedObject)->promoted_openFile(File)); +} + +bool PythonQtWrapper_abstractBinFile::toBinary(abstractBinFile* theWrappedObject, const QString& File) +{ + return ( ((PythonQtPublicPromoter_abstractBinFile*)theWrappedObject)->promoted_toBinary(File)); +} + +bool PythonQtWrapper_abstractBinFile::toSrec(abstractBinFile* theWrappedObject, const QString& File) +{ + return ( ((PythonQtPublicPromoter_abstractBinFile*)theWrappedObject)->promoted_toSrec(File)); +} + PythonQtShell_abstractBinFileWidget::~PythonQtShell_abstractBinFileWidget() { @@ -5087,10 +5540,10 @@ PythonQtShell_abstractBinFileWidget::~Py } void PythonQtShell_abstractBinFileWidget::actionEvent(QActionEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("actionEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QActionEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5098,16 +5551,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::actionEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::changeEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("changeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5115,16 +5570,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::changeEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::childEvent(QChildEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("childEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QChildEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5132,16 +5589,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::childEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::closeEvent(QCloseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("closeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QCloseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5149,16 +5608,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::closeEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::contextMenuEvent(QContextMenuEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("contextMenuEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QContextMenuEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5166,16 +5627,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::contextMenuEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::customEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("customEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5183,16 +5646,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::customEvent(arg__1); } int PythonQtShell_abstractBinFileWidget::devType() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("devType"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); int returnValue; @@ -5211,16 +5676,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFileWidget::devType(); } void PythonQtShell_abstractBinFileWidget::dragEnterEvent(QDragEnterEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragEnterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragEnterEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5228,16 +5695,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::dragEnterEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragLeaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5245,16 +5714,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::dragLeaveEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::dragMoveEvent(QDragMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5262,16 +5733,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::dragMoveEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::dropEvent(QDropEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dropEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDropEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5279,16 +5752,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::dropEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::enterEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("enterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5296,16 +5771,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::enterEvent(arg__1); } bool PythonQtShell_abstractBinFileWidget::event(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("event"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; @@ -5324,16 +5801,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFileWidget::event(arg__1); } bool PythonQtShell_abstractBinFileWidget::eventFilter(QObject* arg__1, QEvent* arg__2) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("eventFilter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); bool returnValue; @@ -5352,16 +5831,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFileWidget::eventFilter(arg__1, arg__2); } void PythonQtShell_abstractBinFileWidget::focusInEvent(QFocusEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusInEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5369,20 +5850,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::focusInEvent(arg__1); } -bool PythonQtShell_abstractBinFileWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_abstractBinFileWidget::focusNextPrevChild(bool next0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusNextPrevChild"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&next}; + void* args[2] = {NULL, (void*)&next0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -5397,16 +5880,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return abstractBinFileWidget::focusNextPrevChild(next); + } else { + PyErr_Clear(); + } +} + return abstractBinFileWidget::focusNextPrevChild(next0); } void PythonQtShell_abstractBinFileWidget::focusOutEvent(QFocusEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusOutEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5414,16 +5899,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::focusOutEvent(arg__1); } bool PythonQtShell_abstractBinFileWidget::hasHeightForWidth() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hasHeightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); bool returnValue; @@ -5442,16 +5929,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFileWidget::hasHeightForWidth(); } int PythonQtShell_abstractBinFileWidget::heightForWidth(int arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("heightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -5470,16 +5959,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFileWidget::heightForWidth(arg__1); } void PythonQtShell_abstractBinFileWidget::hideEvent(QHideEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hideEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QHideEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5487,33 +5978,37 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::hideEvent(arg__1); } -void PythonQtShell_abstractBinFileWidget::initPainter(QPainter* painter) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_abstractBinFileWidget::initPainter(QPainter* painter0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("initPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&painter}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - abstractBinFileWidget::initPainter(painter); + void* args[2] = {NULL, (void*)&painter0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + abstractBinFileWidget::initPainter(painter0); } void PythonQtShell_abstractBinFileWidget::inputMethodEvent(QInputMethodEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QInputMethodEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5521,16 +6016,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::inputMethodEvent(arg__1); } QVariant PythonQtShell_abstractBinFileWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodQuery"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QVariant returnValue; @@ -5549,16 +6046,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFileWidget::inputMethodQuery(arg__1); } void PythonQtShell_abstractBinFileWidget::keyPressEvent(QKeyEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyPressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5566,16 +6065,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::keyPressEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::keyReleaseEvent(QKeyEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5583,16 +6084,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::keyReleaseEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::leaveEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("leaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5600,16 +6103,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::leaveEvent(arg__1); } int PythonQtShell_abstractBinFileWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("metric"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -5628,16 +6133,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFileWidget::metric(arg__1); } QSize PythonQtShell_abstractBinFileWidget::minimumSizeHint() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getMinimumSizeHint"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QSize"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QSize returnValue; @@ -5656,16 +6163,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFileWidget::minimumSizeHint(); } void PythonQtShell_abstractBinFileWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseDoubleClickEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5673,16 +6182,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::mouseDoubleClickEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::mouseMoveEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5690,16 +6201,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::mouseMoveEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::mousePressEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mousePressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5707,16 +6220,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::mousePressEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::mouseReleaseEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5724,16 +6239,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::mouseReleaseEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::moveEvent(QMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("moveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5741,20 +6258,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::moveEvent(arg__1); } -bool PythonQtShell_abstractBinFileWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_abstractBinFileWidget::nativeEvent(const QByteArray& eventType0, void* message1, long* result2) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("nativeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); bool returnValue; - void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -5769,16 +6288,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return abstractBinFileWidget::nativeEvent(eventType, message, result); + } else { + PyErr_Clear(); + } +} + return abstractBinFileWidget::nativeEvent(eventType0, message1, result2); } QPaintEngine* PythonQtShell_abstractBinFileWidget::paintEngine() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEngine"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintEngine*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPaintEngine* returnValue; @@ -5797,16 +6318,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFileWidget::paintEngine(); } void PythonQtShell_abstractBinFileWidget::paintEvent(QPaintEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPaintEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5814,20 +6337,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::paintEvent(arg__1); } -QPaintDevice* PythonQtShell_abstractBinFileWidget::redirected(QPoint* offset) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +QPaintDevice* PythonQtShell_abstractBinFileWidget::redirected(QPoint* offset0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("redirected"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QPaintDevice* returnValue; - void* args[2] = {NULL, (void*)&offset}; + void* args[2] = {NULL, (void*)&offset0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -5842,16 +6367,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return abstractBinFileWidget::redirected(offset); + } else { + PyErr_Clear(); + } +} + return abstractBinFileWidget::redirected(offset0); } void PythonQtShell_abstractBinFileWidget::reloadFile() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reloadFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("reloadFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={""}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); void* args[1] = {NULL}; @@ -5859,16 +6386,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } } void PythonQtShell_abstractBinFileWidget::resizeEvent(QResizeEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("resizeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QResizeEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5876,33 +6405,37 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::resizeEvent(arg__1); } -void PythonQtShell_abstractBinFileWidget::setFile(abstractBinFile* file) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_abstractBinFileWidget::setFile(abstractBinFile* file0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("setFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "abstractBinFile*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&file}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; + void* args[2] = {NULL, (void*)&file0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); } } } QPainter* PythonQtShell_abstractBinFileWidget::sharedPainter() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("sharedPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPainter* returnValue; @@ -5921,16 +6454,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFileWidget::sharedPainter(); } void PythonQtShell_abstractBinFileWidget::showEvent(QShowEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("showEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QShowEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5938,16 +6473,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::showEvent(arg__1); } QSize PythonQtShell_abstractBinFileWidget::sizeHint() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getSizeHint"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QSize"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QSize returnValue; @@ -5966,16 +6503,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return abstractBinFileWidget::sizeHint(); } void PythonQtShell_abstractBinFileWidget::tabletEvent(QTabletEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("tabletEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTabletEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -5983,16 +6522,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::tabletEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::timerEvent(QTimerEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("timerEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTimerEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6000,16 +6541,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::timerEvent(arg__1); } void PythonQtShell_abstractBinFileWidget::wheelEvent(QWheelEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("wheelEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QWheelEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6017,6 +6560,8 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } abstractBinFileWidget::wheelEvent(arg__1); @@ -6025,6 +6570,16 @@ abstractBinFileWidget* PythonQtWrapper_a { return new PythonQtShell_abstractBinFileWidget(parent); } +void PythonQtWrapper_abstractBinFileWidget::reloadFile(abstractBinFileWidget* theWrappedObject) +{ + ( ((PythonQtPublicPromoter_abstractBinFileWidget*)theWrappedObject)->promoted_reloadFile()); +} + +void PythonQtWrapper_abstractBinFileWidget::setFile(abstractBinFileWidget* theWrappedObject, abstractBinFile* file) +{ + ( ((PythonQtPublicPromoter_abstractBinFileWidget*)theWrappedObject)->promoted_setFile(file)); +} + PythonQtShell_binaryFile::~PythonQtShell_binaryFile() { @@ -6033,10 +6588,10 @@ PythonQtShell_binaryFile::~PythonQtShell } int PythonQtShell_binaryFile::closeFile() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("closeFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); int returnValue; @@ -6055,16 +6610,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return binaryFile::closeFile(); } QList PythonQtShell_binaryFile::getFragments() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getFragments"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QList"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QList returnValue; @@ -6083,16 +6640,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return binaryFile::getFragments(); } bool PythonQtShell_binaryFile::isopened() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("isopened"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); bool returnValue; @@ -6111,20 +6670,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return binaryFile::isopened(); } -bool PythonQtShell_binaryFile::openFile(const QString& File) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_binaryFile::openFile(const QString& File0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("openFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&File}; + void* args[2] = {NULL, (void*)&File0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -6139,20 +6700,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return binaryFile::openFile(File); -} -bool PythonQtShell_binaryFile::toBinary(const QString& fileName) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "toBinary"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + } else { + PyErr_Clear(); + } +} + return binaryFile::openFile(File0); +} +bool PythonQtShell_binaryFile::toBinary(const QString& fileName0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("toBinary"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&fileName}; + void* args[2] = {NULL, (void*)&fileName0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -6167,20 +6730,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return binaryFile::toBinary(fileName); -} -bool PythonQtShell_binaryFile::toSrec(const QString& fileName) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "toSrec"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + } else { + PyErr_Clear(); + } +} + return binaryFile::toBinary(fileName0); +} +bool PythonQtShell_binaryFile::toSrec(const QString& fileName0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("toSrec"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&fileName}; + void* args[2] = {NULL, (void*)&fileName0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -6195,9 +6760,11 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return binaryFile::toSrec(fileName); + } else { + PyErr_Clear(); + } +} + return binaryFile::toSrec(fileName0); } binaryFile* PythonQtWrapper_binaryFile::new_binaryFile() { @@ -6289,10 +6856,10 @@ PythonQtShell_binaryFileWidget::~PythonQ } void PythonQtShell_binaryFileWidget::reloadFile() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reloadFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("reloadFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={""}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); void* args[1] = {NULL}; @@ -6300,26 +6867,30 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } binaryFileWidget::reloadFile(); } -void PythonQtShell_binaryFileWidget::setFile(abstractBinFile* file) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_binaryFileWidget::setFile(abstractBinFile* file0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("setFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "abstractBinFile*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&file}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - binaryFileWidget::setFile(file); + void* args[2] = {NULL, (void*)&file0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + binaryFileWidget::setFile(file0); } binaryFileWidget* PythonQtWrapper_binaryFileWidget::new_binaryFileWidget(QWidget* parent) { @@ -6357,10 +6928,10 @@ PythonQtShell_elfFileWidget::~PythonQtSh } void PythonQtShell_elfFileWidget::reloadFile() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reloadFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("reloadFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={""}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); void* args[1] = {NULL}; @@ -6368,26 +6939,30 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfFileWidget::reloadFile(); } -void PythonQtShell_elfFileWidget::setFile(abstractBinFile* file) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_elfFileWidget::setFile(abstractBinFile* file0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("setFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "abstractBinFile*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&file}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - elfFileWidget::setFile(file); + void* args[2] = {NULL, (void*)&file0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + elfFileWidget::setFile(file0); } elfFileWidget* PythonQtWrapper_elfFileWidget::new_elfFileWidget(QWidget* parent) { @@ -6411,10 +6986,10 @@ PythonQtShell_elfInfoWdgt::~PythonQtShel } void PythonQtShell_elfInfoWdgt::actionEvent(QActionEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("actionEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QActionEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6422,16 +6997,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::actionEvent(arg__1); } void PythonQtShell_elfInfoWdgt::changeEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("changeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6439,16 +7016,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::changeEvent(arg__1); } void PythonQtShell_elfInfoWdgt::childEvent(QChildEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("childEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QChildEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6456,16 +7035,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::childEvent(arg__1); } void PythonQtShell_elfInfoWdgt::closeEvent(QCloseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("closeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QCloseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6473,16 +7054,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::closeEvent(arg__1); } void PythonQtShell_elfInfoWdgt::contextMenuEvent(QContextMenuEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("contextMenuEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QContextMenuEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6490,16 +7073,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::contextMenuEvent(arg__1); } void PythonQtShell_elfInfoWdgt::customEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("customEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6507,16 +7092,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::customEvent(arg__1); } int PythonQtShell_elfInfoWdgt::devType() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("devType"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); int returnValue; @@ -6535,16 +7122,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return elfInfoWdgt::devType(); } void PythonQtShell_elfInfoWdgt::dragEnterEvent(QDragEnterEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragEnterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragEnterEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6552,16 +7141,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::dragEnterEvent(arg__1); } void PythonQtShell_elfInfoWdgt::dragLeaveEvent(QDragLeaveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragLeaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6569,16 +7160,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::dragLeaveEvent(arg__1); } void PythonQtShell_elfInfoWdgt::dragMoveEvent(QDragMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6586,16 +7179,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::dragMoveEvent(arg__1); } void PythonQtShell_elfInfoWdgt::dropEvent(QDropEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dropEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDropEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6603,16 +7198,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::dropEvent(arg__1); } void PythonQtShell_elfInfoWdgt::enterEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("enterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6620,16 +7217,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::enterEvent(arg__1); } bool PythonQtShell_elfInfoWdgt::event(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("event"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; @@ -6648,16 +7247,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return elfInfoWdgt::event(arg__1); } bool PythonQtShell_elfInfoWdgt::eventFilter(QObject* arg__1, QEvent* arg__2) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("eventFilter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); bool returnValue; @@ -6676,16 +7277,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return elfInfoWdgt::eventFilter(arg__1, arg__2); } void PythonQtShell_elfInfoWdgt::focusInEvent(QFocusEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusInEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6693,20 +7296,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::focusInEvent(arg__1); } -bool PythonQtShell_elfInfoWdgt::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_elfInfoWdgt::focusNextPrevChild(bool next0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusNextPrevChild"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&next}; + void* args[2] = {NULL, (void*)&next0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -6721,16 +7326,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return elfInfoWdgt::focusNextPrevChild(next); + } else { + PyErr_Clear(); + } +} + return elfInfoWdgt::focusNextPrevChild(next0); } void PythonQtShell_elfInfoWdgt::focusOutEvent(QFocusEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusOutEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6738,16 +7345,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::focusOutEvent(arg__1); } bool PythonQtShell_elfInfoWdgt::hasHeightForWidth() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hasHeightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); bool returnValue; @@ -6766,16 +7375,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return elfInfoWdgt::hasHeightForWidth(); } int PythonQtShell_elfInfoWdgt::heightForWidth(int arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("heightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -6794,16 +7405,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return elfInfoWdgt::heightForWidth(arg__1); } void PythonQtShell_elfInfoWdgt::hideEvent(QHideEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hideEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QHideEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6811,33 +7424,37 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::hideEvent(arg__1); } -void PythonQtShell_elfInfoWdgt::initPainter(QPainter* painter) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_elfInfoWdgt::initPainter(QPainter* painter0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("initPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&painter}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - elfInfoWdgt::initPainter(painter); + void* args[2] = {NULL, (void*)&painter0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + elfInfoWdgt::initPainter(painter0); } void PythonQtShell_elfInfoWdgt::inputMethodEvent(QInputMethodEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QInputMethodEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6845,16 +7462,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::inputMethodEvent(arg__1); } QVariant PythonQtShell_elfInfoWdgt::inputMethodQuery(Qt::InputMethodQuery arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodQuery"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QVariant returnValue; @@ -6873,16 +7492,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return elfInfoWdgt::inputMethodQuery(arg__1); } void PythonQtShell_elfInfoWdgt::keyPressEvent(QKeyEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyPressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6890,16 +7511,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::keyPressEvent(arg__1); } void PythonQtShell_elfInfoWdgt::keyReleaseEvent(QKeyEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6907,16 +7530,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::keyReleaseEvent(arg__1); } void PythonQtShell_elfInfoWdgt::leaveEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("leaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6924,16 +7549,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::leaveEvent(arg__1); } int PythonQtShell_elfInfoWdgt::metric(QPaintDevice::PaintDeviceMetric arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("metric"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -6952,16 +7579,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return elfInfoWdgt::metric(arg__1); } QSize PythonQtShell_elfInfoWdgt::minimumSizeHint() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getMinimumSizeHint"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QSize"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QSize returnValue; @@ -6980,16 +7609,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return elfInfoWdgt::minimumSizeHint(); } void PythonQtShell_elfInfoWdgt::mouseDoubleClickEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseDoubleClickEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -6997,16 +7628,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::mouseDoubleClickEvent(arg__1); } void PythonQtShell_elfInfoWdgt::mouseMoveEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7014,16 +7647,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::mouseMoveEvent(arg__1); } void PythonQtShell_elfInfoWdgt::mousePressEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mousePressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7031,16 +7666,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::mousePressEvent(arg__1); } void PythonQtShell_elfInfoWdgt::mouseReleaseEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7048,16 +7685,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::mouseReleaseEvent(arg__1); } void PythonQtShell_elfInfoWdgt::moveEvent(QMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("moveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7065,20 +7704,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::moveEvent(arg__1); } -bool PythonQtShell_elfInfoWdgt::nativeEvent(const QByteArray& eventType, void* message, long* result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_elfInfoWdgt::nativeEvent(const QByteArray& eventType0, void* message1, long* result2) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("nativeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); bool returnValue; - void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -7093,16 +7734,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return elfInfoWdgt::nativeEvent(eventType, message, result); + } else { + PyErr_Clear(); + } +} + return elfInfoWdgt::nativeEvent(eventType0, message1, result2); } QPaintEngine* PythonQtShell_elfInfoWdgt::paintEngine() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEngine"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintEngine*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPaintEngine* returnValue; @@ -7121,16 +7764,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return elfInfoWdgt::paintEngine(); } void PythonQtShell_elfInfoWdgt::paintEvent(QPaintEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPaintEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7138,20 +7783,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::paintEvent(arg__1); } -QPaintDevice* PythonQtShell_elfInfoWdgt::redirected(QPoint* offset) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +QPaintDevice* PythonQtShell_elfInfoWdgt::redirected(QPoint* offset0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("redirected"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QPaintDevice* returnValue; - void* args[2] = {NULL, (void*)&offset}; + void* args[2] = {NULL, (void*)&offset0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -7166,16 +7813,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return elfInfoWdgt::redirected(offset); + } else { + PyErr_Clear(); + } +} + return elfInfoWdgt::redirected(offset0); } void PythonQtShell_elfInfoWdgt::resizeEvent(QResizeEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("resizeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QResizeEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7183,16 +7832,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::resizeEvent(arg__1); } QPainter* PythonQtShell_elfInfoWdgt::sharedPainter() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("sharedPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPainter* returnValue; @@ -7211,16 +7862,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return elfInfoWdgt::sharedPainter(); } void PythonQtShell_elfInfoWdgt::showEvent(QShowEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("showEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QShowEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7228,16 +7881,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::showEvent(arg__1); } QSize PythonQtShell_elfInfoWdgt::sizeHint() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getSizeHint"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QSize"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QSize returnValue; @@ -7256,16 +7911,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return elfInfoWdgt::sizeHint(); } void PythonQtShell_elfInfoWdgt::tabletEvent(QTabletEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("tabletEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTabletEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7273,16 +7930,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::tabletEvent(arg__1); } void PythonQtShell_elfInfoWdgt::timerEvent(QTimerEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("timerEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTimerEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7290,16 +7949,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::timerEvent(arg__1); } void PythonQtShell_elfInfoWdgt::wheelEvent(QWheelEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("wheelEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QWheelEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7307,6 +7968,8 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } elfInfoWdgt::wheelEvent(arg__1); @@ -7464,10 +8127,10 @@ PythonQtShell_genericBinaryFileWidget::~ } void PythonQtShell_genericBinaryFileWidget::actionEvent(QActionEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "actionEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("actionEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QActionEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7475,16 +8138,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::actionEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::changeEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "changeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("changeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7492,16 +8157,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::changeEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::childEvent(QChildEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "childEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("childEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QChildEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7509,16 +8176,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::childEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::closeEvent(QCloseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("closeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QCloseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7526,16 +8195,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::closeEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::contextMenuEvent(QContextMenuEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "contextMenuEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("contextMenuEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QContextMenuEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7543,16 +8214,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::contextMenuEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::customEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "customEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("customEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7560,16 +8233,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::customEvent(arg__1); } int PythonQtShell_genericBinaryFileWidget::devType() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "devType"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("devType"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); int returnValue; @@ -7588,16 +8263,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return genericBinaryFileWidget::devType(); } void PythonQtShell_genericBinaryFileWidget::dragEnterEvent(QDragEnterEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragEnterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragEnterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragEnterEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7605,16 +8282,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::dragEnterEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::dragLeaveEvent(QDragLeaveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragLeaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragLeaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragLeaveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7622,16 +8301,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::dragLeaveEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::dragMoveEvent(QDragMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dragMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dragMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDragMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7639,16 +8320,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::dragMoveEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::dropEvent(QDropEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "dropEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("dropEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QDropEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7656,16 +8339,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::dropEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::enterEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "enterEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("enterEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7673,16 +8358,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::enterEvent(arg__1); } bool PythonQtShell_genericBinaryFileWidget::event(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "event"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("event"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; @@ -7701,16 +8388,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return genericBinaryFileWidget::event(arg__1); } bool PythonQtShell_genericBinaryFileWidget::eventFilter(QObject* arg__1, QEvent* arg__2) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "eventFilter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("eventFilter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "QObject*" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(3, argumentList); bool returnValue; @@ -7729,16 +8418,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return genericBinaryFileWidget::eventFilter(arg__1, arg__2); } void PythonQtShell_genericBinaryFileWidget::focusInEvent(QFocusEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusInEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusInEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7746,20 +8437,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::focusInEvent(arg__1); } -bool PythonQtShell_genericBinaryFileWidget::focusNextPrevChild(bool next) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusNextPrevChild"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_genericBinaryFileWidget::focusNextPrevChild(bool next0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusNextPrevChild"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&next}; + void* args[2] = {NULL, (void*)&next0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -7774,16 +8467,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return genericBinaryFileWidget::focusNextPrevChild(next); + } else { + PyErr_Clear(); + } +} + return genericBinaryFileWidget::focusNextPrevChild(next0); } void PythonQtShell_genericBinaryFileWidget::focusOutEvent(QFocusEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "focusOutEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("focusOutEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QFocusEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7791,16 +8486,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::focusOutEvent(arg__1); } bool PythonQtShell_genericBinaryFileWidget::hasHeightForWidth() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hasHeightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hasHeightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); bool returnValue; @@ -7819,16 +8516,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return genericBinaryFileWidget::hasHeightForWidth(); } int PythonQtShell_genericBinaryFileWidget::heightForWidth(int arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "heightForWidth"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("heightForWidth"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -7847,16 +8546,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return genericBinaryFileWidget::heightForWidth(arg__1); } void PythonQtShell_genericBinaryFileWidget::hideEvent(QHideEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "hideEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("hideEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QHideEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7864,33 +8565,37 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::hideEvent(arg__1); } -void PythonQtShell_genericBinaryFileWidget::initPainter(QPainter* painter) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "initPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_genericBinaryFileWidget::initPainter(QPainter* painter0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("initPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&painter}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - genericBinaryFileWidget::initPainter(painter); + void* args[2] = {NULL, (void*)&painter0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + genericBinaryFileWidget::initPainter(painter0); } void PythonQtShell_genericBinaryFileWidget::inputMethodEvent(QInputMethodEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QInputMethodEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7898,16 +8603,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::inputMethodEvent(arg__1); } QVariant PythonQtShell_genericBinaryFileWidget::inputMethodQuery(Qt::InputMethodQuery arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "inputMethodQuery"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("inputMethodQuery"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QVariant" , "Qt::InputMethodQuery"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QVariant returnValue; @@ -7926,16 +8633,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return genericBinaryFileWidget::inputMethodQuery(arg__1); } void PythonQtShell_genericBinaryFileWidget::keyPressEvent(QKeyEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyPressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyPressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7943,16 +8652,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::keyPressEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::keyReleaseEvent(QKeyEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "keyReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("keyReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QKeyEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7960,16 +8671,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::keyReleaseEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::leaveEvent(QEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "leaveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("leaveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -7977,16 +8690,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::leaveEvent(arg__1); } int PythonQtShell_genericBinaryFileWidget::metric(QPaintDevice::PaintDeviceMetric arg__1) const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "metric"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("metric"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int" , "QPaintDevice::PaintDeviceMetric"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); int returnValue; @@ -8005,16 +8720,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return genericBinaryFileWidget::metric(arg__1); } QSize PythonQtShell_genericBinaryFileWidget::minimumSizeHint() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getMinimumSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getMinimumSizeHint"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QSize"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QSize returnValue; @@ -8033,16 +8750,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return genericBinaryFileWidget::minimumSizeHint(); } void PythonQtShell_genericBinaryFileWidget::mouseDoubleClickEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseDoubleClickEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseDoubleClickEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -8050,16 +8769,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::mouseDoubleClickEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::mouseMoveEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseMoveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseMoveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -8067,16 +8788,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::mouseMoveEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::mousePressEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mousePressEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mousePressEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -8084,16 +8807,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::mousePressEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::mouseReleaseEvent(QMouseEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "mouseReleaseEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("mouseReleaseEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMouseEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -8101,16 +8826,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::mouseReleaseEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::moveEvent(QMoveEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "moveEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("moveEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QMoveEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -8118,20 +8845,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::moveEvent(arg__1); } -bool PythonQtShell_genericBinaryFileWidget::nativeEvent(const QByteArray& eventType, void* message, long* result) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "nativeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_genericBinaryFileWidget::nativeEvent(const QByteArray& eventType0, void* message1, long* result2) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("nativeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QByteArray&" , "void*" , "long*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(4, argumentList); bool returnValue; - void* args[4] = {NULL, (void*)&eventType, (void*)&message, (void*)&result}; + void* args[4] = {NULL, (void*)&eventType0, (void*)&message1, (void*)&result2}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -8146,16 +8875,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return genericBinaryFileWidget::nativeEvent(eventType, message, result); + } else { + PyErr_Clear(); + } +} + return genericBinaryFileWidget::nativeEvent(eventType0, message1, result2); } QPaintEngine* PythonQtShell_genericBinaryFileWidget::paintEngine() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEngine"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEngine"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintEngine*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPaintEngine* returnValue; @@ -8174,16 +8905,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return genericBinaryFileWidget::paintEngine(); } void PythonQtShell_genericBinaryFileWidget::paintEvent(QPaintEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "paintEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("paintEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QPaintEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -8191,20 +8924,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::paintEvent(arg__1); } -QPaintDevice* PythonQtShell_genericBinaryFileWidget::redirected(QPoint* offset) const -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "redirected"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +QPaintDevice* PythonQtShell_genericBinaryFileWidget::redirected(QPoint* offset0) const +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("redirected"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPaintDevice*" , "QPoint*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); QPaintDevice* returnValue; - void* args[2] = {NULL, (void*)&offset}; + void* args[2] = {NULL, (void*)&offset0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -8219,16 +8954,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return genericBinaryFileWidget::redirected(offset); + } else { + PyErr_Clear(); + } +} + return genericBinaryFileWidget::redirected(offset0); } void PythonQtShell_genericBinaryFileWidget::resizeEvent(QResizeEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "resizeEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("resizeEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QResizeEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -8236,16 +8973,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::resizeEvent(arg__1); } QPainter* PythonQtShell_genericBinaryFileWidget::sharedPainter() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "sharedPainter"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("sharedPainter"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QPainter*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QPainter* returnValue; @@ -8264,16 +9003,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return genericBinaryFileWidget::sharedPainter(); } void PythonQtShell_genericBinaryFileWidget::showEvent(QShowEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "showEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("showEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QShowEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -8281,16 +9022,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::showEvent(arg__1); } QSize PythonQtShell_genericBinaryFileWidget::sizeHint() const { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getSizeHint"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getSizeHint"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QSize"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QSize returnValue; @@ -8309,16 +9052,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return genericBinaryFileWidget::sizeHint(); } void PythonQtShell_genericBinaryFileWidget::tabletEvent(QTabletEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "tabletEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("tabletEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTabletEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -8326,16 +9071,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::tabletEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::timerEvent(QTimerEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "timerEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("timerEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QTimerEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -8343,16 +9090,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::timerEvent(arg__1); } void PythonQtShell_genericBinaryFileWidget::wheelEvent(QWheelEvent* arg__1) { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "wheelEvent"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("wheelEvent"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "QWheelEvent*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); void* args[2] = {NULL, (void*)&arg__1}; @@ -8360,6 +9109,8 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } genericBinaryFileWidget::wheelEvent(arg__1); @@ -8376,10 +9127,10 @@ PythonQtShell_srecFile::~PythonQtShell_s } int PythonQtShell_srecFile::closeFile() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "closeFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("closeFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"int"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); int returnValue; @@ -8398,16 +9149,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return srecFile::closeFile(); } QList PythonQtShell_srecFile::getFragments() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "getFragments"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("getFragments"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"QList"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); QList returnValue; @@ -8426,16 +9179,18 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return srecFile::getFragments(); } bool PythonQtShell_srecFile::isopened() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "isopened"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("isopened"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); bool returnValue; @@ -8454,20 +9209,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; + } else { + PyErr_Clear(); } } return srecFile::isopened(); } -bool PythonQtShell_srecFile::openFile(const QString& File) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "openFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +bool PythonQtShell_srecFile::openFile(const QString& File0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("openFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&File}; + void* args[2] = {NULL, (void*)&File0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -8482,20 +9239,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return srecFile::openFile(File); -} -bool PythonQtShell_srecFile::toBinary(const QString& File) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "toBinary"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + } else { + PyErr_Clear(); + } +} + return srecFile::openFile(File0); +} +bool PythonQtShell_srecFile::toBinary(const QString& File0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("toBinary"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&File}; + void* args[2] = {NULL, (void*)&File0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -8510,20 +9269,22 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return srecFile::toBinary(File); -} -bool PythonQtShell_srecFile::toSrec(const QString& File) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "toSrec"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { + } else { + PyErr_Clear(); + } +} + return srecFile::toBinary(File0); +} +bool PythonQtShell_srecFile::toSrec(const QString& File0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("toSrec"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"bool" , "const QString&"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); bool returnValue; - void* args[2] = {NULL, (void*)&File}; + void* args[2] = {NULL, (void*)&File0}; PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); if (result) { args[0] = PythonQtConv::ConvertPythonToQt(methodInfo->parameters().at(0), result, false, NULL, &returnValue); @@ -8538,9 +9299,11 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return returnValue; - } -} - return srecFile::toSrec(File); + } else { + PyErr_Clear(); + } +} + return srecFile::toSrec(File0); } srecFile* PythonQtWrapper_srecFile::new_srecFile() { @@ -8662,10 +9425,10 @@ PythonQtShell_srecFileWidget::~PythonQtS } void PythonQtShell_srecFileWidget::reloadFile() { -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "reloadFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("reloadFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={""}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(1, argumentList); void* args[1] = {NULL}; @@ -8673,26 +9436,30 @@ if (_wrapper) { if (result) { Py_DECREF(result); } Py_DECREF(obj); return; + } else { + PyErr_Clear(); } } srecFileWidget::reloadFile(); } -void PythonQtShell_srecFileWidget::setFile(abstractBinFile* file) -{ -if (_wrapper) { - PyObject* obj = PyObject_GetAttrString((PyObject*)_wrapper, "setFile"); - PyErr_Clear(); - if (obj && !PythonQtSlotFunction_Check(obj)) { +void PythonQtShell_srecFileWidget::setFile(abstractBinFile* file0) +{ +if (_wrapper && (((PyObject*)_wrapper)->ob_refcnt > 0)) { + static PyObject* name = PyString_FromString("setFile"); + PyObject* obj = PyBaseObject_Type.tp_getattro((PyObject*)_wrapper, name); + if (obj) { static const char* argumentList[] ={"" , "abstractBinFile*"}; static const PythonQtMethodInfo* methodInfo = PythonQtMethodInfo::getCachedMethodInfoFromArgumentList(2, argumentList); - void* args[2] = {NULL, (void*)&file}; - PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); - if (result) { Py_DECREF(result); } - Py_DECREF(obj); - return; - } -} - srecFileWidget::setFile(file); + void* args[2] = {NULL, (void*)&file0}; + PyObject* result = PythonQtSignalTarget::call(obj, methodInfo, args, true); + if (result) { Py_DECREF(result); } + Py_DECREF(obj); + return; + } else { + PyErr_Clear(); + } +} + srecFileWidget::setFile(file0); } srecFileWidget* PythonQtWrapper_srecFileWidget::new_srecFileWidget(QWidget* parent) { diff --git a/src/common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer0.h b/src/common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer0.h --- a/src/common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer0.h +++ b/src/common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer0.h @@ -1,5 +1,4 @@ #include -#include #include #include #include @@ -13,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -25,12 +25,14 @@ #include #include #include +#include #include #include #include #include #include #include +#include #include #include #include @@ -50,6 +52,7 @@ #include #include #include +#include #include #include #include @@ -60,8 +63,8 @@ class PythonQtShell_ElfFile : public ElfFile { public: - PythonQtShell_ElfFile():ElfFile(),_wrapper(NULL) {}; - PythonQtShell_ElfFile(const QString& File):ElfFile(File),_wrapper(NULL) {}; + PythonQtShell_ElfFile():ElfFile(),_wrapper(NULL) { }; + PythonQtShell_ElfFile(const QString& File):ElfFile(File),_wrapper(NULL) { }; ~PythonQtShell_ElfFile(); @@ -126,7 +129,9 @@ void delete_ElfFile(ElfFile* obj) { dele QString getSymbolType(ElfFile* theWrappedObject, int index); QString getType(ElfFile* theWrappedObject); qint64 getVersion(ElfFile* theWrappedObject); + bool isBigEndian(ElfFile* theWrappedObject); bool static_ElfFile_isElf(const QString& File); + bool isLitleEndian(ElfFile* theWrappedObject); bool iself(ElfFile* theWrappedObject); bool isopened(ElfFile* theWrappedObject); bool openFile(ElfFile* theWrappedObject, const QString& File); @@ -142,8 +147,8 @@ void delete_ElfFile(ElfFile* obj) { dele class PythonQtShell_MemSizeWdgt : public MemSizeWdgt { public: - PythonQtShell_MemSizeWdgt(QWidget* parent = 0):MemSizeWdgt(parent),_wrapper(NULL) {}; - PythonQtShell_MemSizeWdgt(int defaultSize, QWidget* parent = 0):MemSizeWdgt(defaultSize, parent),_wrapper(NULL) {}; + PythonQtShell_MemSizeWdgt(QWidget* parent = 0):MemSizeWdgt(parent),_wrapper(NULL) { }; + PythonQtShell_MemSizeWdgt(int defaultSize, QWidget* parent = 0):MemSizeWdgt(defaultSize, parent),_wrapper(NULL) { }; ~PythonQtShell_MemSizeWdgt(); @@ -215,7 +220,7 @@ void delete_MemSizeWdgt(MemSizeWdgt* obj class PythonQtShell_QHexEdit : public QHexEdit { public: - PythonQtShell_QHexEdit(QWidget* parent = 0):QHexEdit(parent),_wrapper(NULL) {}; + PythonQtShell_QHexEdit(QWidget* parent = 0):QHexEdit(parent),_wrapper(NULL) { }; ~PythonQtShell_QHexEdit(); @@ -315,7 +320,7 @@ void delete_QHexEdit(QHexEdit* obj) { de class PythonQtShell_QHexSpinBox : public QHexSpinBox { public: - PythonQtShell_QHexSpinBox(QWidget* parent = 0):QHexSpinBox(parent),_wrapper(NULL) {}; + PythonQtShell_QHexSpinBox(QWidget* parent = 0):QHexSpinBox(parent),_wrapper(NULL) { }; ~PythonQtShell_QHexSpinBox(); @@ -398,7 +403,7 @@ void delete_QHexSpinBox(QHexSpinBox* obj class PythonQtShell_SocExplorerPlot : public SocExplorerPlot { public: - PythonQtShell_SocExplorerPlot(QWidget* parent = 0):SocExplorerPlot(parent),_wrapper(NULL) {}; + PythonQtShell_SocExplorerPlot(QWidget* parent = 0):SocExplorerPlot(parent),_wrapper(NULL) { }; ~PythonQtShell_SocExplorerPlot(); @@ -500,7 +505,7 @@ void delete_SocExplorerPlot(SocExplorerP class PythonQtShell_TCP_Terminal_Client : public TCP_Terminal_Client { public: - PythonQtShell_TCP_Terminal_Client(QObject* parent = 0):TCP_Terminal_Client(parent),_wrapper(NULL) {}; + PythonQtShell_TCP_Terminal_Client(QObject* parent = 0):TCP_Terminal_Client(parent),_wrapper(NULL) { }; ~PythonQtShell_TCP_Terminal_Client(); @@ -566,7 +571,7 @@ void delete_XByteArray(XByteArray* obj) class PythonQtShell_abstractBinFile : public abstractBinFile { public: - PythonQtShell_abstractBinFile():abstractBinFile(),_wrapper(NULL) {}; + PythonQtShell_abstractBinFile():abstractBinFile(),_wrapper(NULL) { }; ~PythonQtShell_abstractBinFile(); @@ -585,12 +590,30 @@ virtual bool toSrec(const QString& Fil PythonQtInstanceWrapper* _wrapper; }; +class PythonQtPublicPromoter_abstractBinFile : public abstractBinFile +{ public: +inline int promoted_closeFile() { return closeFile(); } +inline QList promoted_getFragments() { return getFragments(); } +inline bool promoted_isopened() { return isopened(); } +inline bool promoted_openFile(const QString& File) { return openFile(File); } +inline bool promoted_toBinary(const QString& File) { return toBinary(File); } +inline bool promoted_toSrec(const QString& File) { return toSrec(File); } +}; + class PythonQtWrapper_abstractBinFile : public QObject { Q_OBJECT public: public slots: abstractBinFile* new_abstractBinFile(); void delete_abstractBinFile(abstractBinFile* obj) { delete obj; } + int closeFile(abstractBinFile* theWrappedObject); + QList getFragments(abstractBinFile* theWrappedObject); + bool isopened(abstractBinFile* theWrappedObject); + bool openFile(abstractBinFile* theWrappedObject, const QString& File); + bool toBinary(abstractBinFile* theWrappedObject, const QString& File); + bool toSrec(abstractBinFile* theWrappedObject, const QString& File); +void py_set_litleendian(abstractBinFile* theWrappedObject, bool litleendian){ theWrappedObject->litleendian = litleendian; } +bool py_get_litleendian(abstractBinFile* theWrappedObject){ return theWrappedObject->litleendian; } }; @@ -600,7 +623,7 @@ void delete_abstractBinFile(abstractBinF class PythonQtShell_abstractBinFileWidget : public abstractBinFileWidget { public: - PythonQtShell_abstractBinFileWidget(QWidget* parent = 0):abstractBinFileWidget(parent),_wrapper(NULL) {}; + PythonQtShell_abstractBinFileWidget(QWidget* parent = 0):abstractBinFileWidget(parent),_wrapper(NULL) { }; ~PythonQtShell_abstractBinFileWidget(); @@ -654,12 +677,20 @@ virtual void wheelEvent(QWheelEvent* ar PythonQtInstanceWrapper* _wrapper; }; +class PythonQtPublicPromoter_abstractBinFileWidget : public abstractBinFileWidget +{ public: +inline void promoted_reloadFile() { reloadFile(); } +inline void promoted_setFile(abstractBinFile* file) { setFile(file); } +}; + class PythonQtWrapper_abstractBinFileWidget : public QObject { Q_OBJECT public: public slots: abstractBinFileWidget* new_abstractBinFileWidget(QWidget* parent = 0); void delete_abstractBinFileWidget(abstractBinFileWidget* obj) { delete obj; } + void reloadFile(abstractBinFileWidget* theWrappedObject); + void setFile(abstractBinFileWidget* theWrappedObject, abstractBinFile* file); }; @@ -669,9 +700,9 @@ void delete_abstractBinFileWidget(abstra class PythonQtShell_binaryFile : public binaryFile { public: - PythonQtShell_binaryFile():binaryFile(),_wrapper(NULL) {}; - PythonQtShell_binaryFile(const QString& File):binaryFile(File),_wrapper(NULL) {}; - PythonQtShell_binaryFile(const QStringList& Files):binaryFile(Files),_wrapper(NULL) {}; + PythonQtShell_binaryFile():binaryFile(),_wrapper(NULL) { }; + PythonQtShell_binaryFile(const QString& File):binaryFile(File),_wrapper(NULL) { }; + PythonQtShell_binaryFile(const QStringList& Files):binaryFile(Files),_wrapper(NULL) { }; ~PythonQtShell_binaryFile(); @@ -726,7 +757,7 @@ void delete_binaryFile(binaryFile* obj) class PythonQtShell_binaryFileWidget : public binaryFileWidget { public: - PythonQtShell_binaryFileWidget(QWidget* parent = 0):binaryFileWidget(parent),_wrapper(NULL) {}; + PythonQtShell_binaryFileWidget(QWidget* parent = 0):binaryFileWidget(parent),_wrapper(NULL) { }; ~PythonQtShell_binaryFileWidget(); @@ -759,8 +790,8 @@ void delete_binaryFileWidget(binaryFileW class PythonQtShell_codeFragment : public codeFragment { public: - PythonQtShell_codeFragment():codeFragment(),_wrapper(NULL) {}; - PythonQtShell_codeFragment(char* data, quint64 size, quint64 address):codeFragment(data, size, address),_wrapper(NULL) {}; + PythonQtShell_codeFragment():codeFragment(),_wrapper(NULL) { }; + PythonQtShell_codeFragment(char* data, quint64 size, quint64 address):codeFragment(data, size, address),_wrapper(NULL) { }; ~PythonQtShell_codeFragment(); @@ -775,14 +806,14 @@ public slots: codeFragment* new_codeFragment(); codeFragment* new_codeFragment(char* data, quint64 size, quint64 address); void delete_codeFragment(codeFragment* obj) { delete obj; } -void py_set_size(codeFragment* theWrappedObject, quint64 size){ theWrappedObject->size = size; } -quint64 py_get_size(codeFragment* theWrappedObject){ return theWrappedObject->size; } +void py_set_address(codeFragment* theWrappedObject, quint64 address){ theWrappedObject->address = address; } +quint64 py_get_address(codeFragment* theWrappedObject){ return theWrappedObject->address; } void py_set_data(codeFragment* theWrappedObject, char* data){ theWrappedObject->data = data; } char* py_get_data(codeFragment* theWrappedObject){ return theWrappedObject->data; } -void py_set_address(codeFragment* theWrappedObject, quint64 address){ theWrappedObject->address = address; } -quint64 py_get_address(codeFragment* theWrappedObject){ return theWrappedObject->address; } void py_set_header(codeFragment* theWrappedObject, QString header){ theWrappedObject->header = header; } QString py_get_header(codeFragment* theWrappedObject){ return theWrappedObject->header; } +void py_set_size(codeFragment* theWrappedObject, quint64 size){ theWrappedObject->size = size; } +quint64 py_get_size(codeFragment* theWrappedObject){ return theWrappedObject->size; } }; @@ -792,7 +823,7 @@ QString py_get_header(codeFragment* the class PythonQtShell_elfFileWidget : public elfFileWidget { public: - PythonQtShell_elfFileWidget(QWidget* parent = 0):elfFileWidget(parent),_wrapper(NULL) {}; + PythonQtShell_elfFileWidget(QWidget* parent = 0):elfFileWidget(parent),_wrapper(NULL) { }; ~PythonQtShell_elfFileWidget(); @@ -825,7 +856,7 @@ void delete_elfFileWidget(elfFileWidget* class PythonQtShell_elfInfoWdgt : public elfInfoWdgt { public: - PythonQtShell_elfInfoWdgt(QWidget* parent = 0):elfInfoWdgt(parent),_wrapper(NULL) {}; + PythonQtShell_elfInfoWdgt(QWidget* parent = 0):elfInfoWdgt(parent),_wrapper(NULL) { }; ~PythonQtShell_elfInfoWdgt(); @@ -931,7 +962,7 @@ void delete_elfparser(elfparser* obj) { class PythonQtShell_genericBinaryFileWidget : public genericBinaryFileWidget { public: - PythonQtShell_genericBinaryFileWidget(QWidget* parent = 0):genericBinaryFileWidget(parent),_wrapper(NULL) {}; + PythonQtShell_genericBinaryFileWidget(QWidget* parent = 0):genericBinaryFileWidget(parent),_wrapper(NULL) { }; ~PythonQtShell_genericBinaryFileWidget(); @@ -998,9 +1029,9 @@ void delete_genericBinaryFileWidget(gene class PythonQtShell_srecFile : public srecFile { public: - PythonQtShell_srecFile():srecFile(),_wrapper(NULL) {}; - PythonQtShell_srecFile(const QString& File):srecFile(File),_wrapper(NULL) {}; - PythonQtShell_srecFile(const QStringList& Files):srecFile(Files),_wrapper(NULL) {}; + PythonQtShell_srecFile():srecFile(),_wrapper(NULL) { }; + PythonQtShell_srecFile(const QString& File):srecFile(File),_wrapper(NULL) { }; + PythonQtShell_srecFile(const QStringList& Files):srecFile(Files),_wrapper(NULL) { }; ~PythonQtShell_srecFile(); @@ -1061,7 +1092,7 @@ void delete_srecFile(srecFile* obj) { de class PythonQtShell_srecFileWidget : public srecFileWidget { public: - PythonQtShell_srecFileWidget(QWidget* parent = 0):srecFileWidget(parent),_wrapper(NULL) {}; + PythonQtShell_srecFileWidget(QWidget* parent = 0):srecFileWidget(parent),_wrapper(NULL) { }; ~PythonQtShell_srecFileWidget(); diff --git a/src/common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer_init.cpp b/src/common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer_init.cpp --- a/src/common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer_init.cpp +++ b/src/common/pythonQtOut/generated_cpp/PySocExplorer/PySocExplorer_init.cpp @@ -1,7 +1,9 @@ #include +#include #include "PySocExplorer0.h" + void PythonQt_init_PySocExplorer(PyObject* module) { PythonQt::priv()->registerClass(&ElfFile::staticMetaObject, "PySocExplorer", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); PythonQt::self()->addParentClass("ElfFile", "abstractBinFile",PythonQtUpcastingOffset()); @@ -28,4 +30,5 @@ PythonQt::self()->addParentClass("srecFi PythonQt::priv()->registerClass(&srecFileWidget::staticMetaObject, "PySocExplorer", PythonQtCreateObject, PythonQtSetInstanceWrapperOnShell, module, 0); PythonQt::self()->addParentClass("srecFileWidget", "abstractBinFileWidget",PythonQtUpcastingOffset()); + } diff --git a/src/main.cpp b/src/main.cpp --- a/src/main.cpp +++ b/src/main.cpp @@ -30,13 +30,10 @@ #include #include +void usage(); int main(int argc, char *argv[]) { - // Q_INIT_RESOURCE(socexplorer); -#ifdef Q_OS_LINUX - // QApplication::setGraphicsSystem("raster"); -#endif QApplication a(argc, argv); QString scriptToEval; QStringList args= a.arguments(); @@ -69,3 +66,10 @@ int main(int argc, char *argv[]) w.show(); return a.exec(); } + + +void usage() +{ + // TODO respect usual Linux Cli interface, socexplore [OPTION]...FILES... + // TODO write an usage helper. +} diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -32,7 +32,7 @@ SocExplorerMainWindow::SocExplorerMainWi this->makeLayout(); this->makeMenu(); this->makeConnections(); - this->setWindowIcon(QIcon(tr(":/images/icon.png"))); + this->setWindowIcon(QIcon(":/images/icon.png")); this->setAcceptDrops(true); this->pluginManager->setRootLoadable(true); this->PythonConsoleInst->pyConsoleRunFile(ScriptToEval);